summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-05-12 14:20:26 -0700
committerJosh Blum <josh@joshknows.com>2012-05-14 11:59:20 -0700
commitc94963a43665809d0a75cebac6283cb7c88a6f5c (patch)
treed541427555fd5c2aa206321bca2e962cc5aa3644 /host/include
parentdb6ba7d474d248c753ceee47f33db51504a8fd74 (diff)
downloaduhd-c94963a43665809d0a75cebac6283cb7c88a6f5c.tar.gz
uhd-c94963a43665809d0a75cebac6283cb7c88a6f5c.tar.bz2
uhd-c94963a43665809d0a75cebac6283cb7c88a6f5c.zip
usrp: mboard eeprom map use string as key
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/mboard_eeprom.hpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/host/include/uhd/usrp/mboard_eeprom.hpp b/host/include/uhd/usrp/mboard_eeprom.hpp
index c47f894be..f064e9956 100644
--- a/host/include/uhd/usrp/mboard_eeprom.hpp
+++ b/host/include/uhd/usrp/mboard_eeprom.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010 Ettus Research LLC
+// Copyright 2010-2012 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -34,30 +34,22 @@ namespace uhd{ namespace usrp{
*/
struct UHD_API mboard_eeprom_t : uhd::dict<std::string, std::string>{
- //! Possible EEPROM maps types
- enum map_type{
- MAP_N100,
- MAP_B000,
- MAP_B100,
- MAP_E100
- };
-
//! Make a new empty mboard eeprom
mboard_eeprom_t(void);
/*!
* Make a new mboard EEPROM handler.
* \param iface the interface to i2c
- * \param map the map type enum
+ * \param which which EEPROM map to use
*/
- mboard_eeprom_t(i2c_iface &iface, map_type map);
+ mboard_eeprom_t(i2c_iface &iface, const std::string &which);
/*!
* Write the contents of this object to the EEPROM.
* \param iface the interface to i2c
- * \param map the map type enum
+ * \param which which EEPROM map to use
*/
- void commit(i2c_iface &iface, map_type map) const;
+ void commit(i2c_iface &iface, const std::string &which) const;
};