From d9630428843f2510d99cb494435e4dc273652250 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 27 Jun 2011 12:49:38 -0700 Subject: usrp2: work on setting up controllers --- host/include/uhd/property.hpp | 10 ++++++++++ host/include/uhd/usrp/mboard_eeprom.hpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'host/include') 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 publisher_type; typedef boost::function 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; }; -- cgit v1.2.3