summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-27 12:49:38 -0700
committerJosh Blum <josh@joshknows.com>2011-06-27 12:49:38 -0700
commitd9630428843f2510d99cb494435e4dc273652250 (patch)
treed7083a6c804dd0f7466b0ef0416c7183766f5fe4 /host/include
parent99eabb0a6b70a3bdb4f1cb0844894c4023dcd629 (diff)
downloaduhd-d9630428843f2510d99cb494435e4dc273652250.tar.gz
uhd-d9630428843f2510d99cb494435e4dc273652250.tar.bz2
uhd-d9630428843f2510d99cb494435e4dc273652250.zip
usrp2: work on setting up controllers
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/property.hpp10
-rw-r--r--host/include/uhd/usrp/mboard_eeprom.hpp2
2 files changed, 11 insertions, 1 deletions
diff --git a/host/include/uhd/property.hpp b/host/include/uhd/property.hpp
index 6f337cb52..10ce463e0 100644
--- a/host/include/uhd/property.hpp
+++ b/host/include/uhd/property.hpp
@@ -35,6 +35,16 @@ public:
typedef boost::function<T(void)> publisher_type;
typedef boost::function<T(const T &)> master_type;
+ //! Default constructor
+ property(void){
+ /* NOP */
+ }
+
+ //! Value initializer constructor
+ property(const T &value){
+ _value = value;
+ }
+
/*!
* Register a master subscriber into the property.
* A master is a special subscriber that coerces the value.
diff --git a/host/include/uhd/usrp/mboard_eeprom.hpp b/host/include/uhd/usrp/mboard_eeprom.hpp
index 52363b95c..ea66bb2e0 100644
--- a/host/include/uhd/usrp/mboard_eeprom.hpp
+++ b/host/include/uhd/usrp/mboard_eeprom.hpp
@@ -56,7 +56,7 @@ namespace uhd{ namespace usrp{
* \param iface the interface to i2c
* \param map the map type enum
*/
- void commit(i2c_iface &iface, map_type map);
+ void commit(i2c_iface &iface, map_type map) const;
};