diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-08 13:53:40 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-08 13:53:40 -0700 |
commit | 2eb813f6845e8cd208d6a59e1d7873cf84c51b03 (patch) | |
tree | 5092d49313d9e2d09569504a7999eb0a0a49f9e1 /host/include | |
parent | 83fd99cc7badb91a2e8c97048eb9ea694aba22eb (diff) | |
parent | a4f8ad59b2abc6d4b1a6c65aa2652083486e3065 (diff) | |
download | uhd-2eb813f6845e8cd208d6a59e1d7873cf84c51b03.tar.gz uhd-2eb813f6845e8cd208d6a59e1d7873cf84c51b03.tar.bz2 uhd-2eb813f6845e8cd208d6a59e1d7873cf84c51b03.zip |
Merge branch 'subdev_enable' into next
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/subdev_props.hpp | 1 | ||||
-rw-r--r-- | host/include/uhd/usrp/subdev_spec.hpp | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/host/include/uhd/usrp/subdev_props.hpp b/host/include/uhd/usrp/subdev_props.hpp index cd07cb7a8..8f096ffe4 100644 --- a/host/include/uhd/usrp/subdev_props.hpp +++ b/host/include/uhd/usrp/subdev_props.hpp @@ -53,6 +53,7 @@ namespace uhd{ namespace usrp{ SUBDEV_PROP_ANTENNA_NAMES = 'A', //ro, prop_names_t SUBDEV_PROP_LO_LOCKED = 'L', //ro, bool SUBDEV_PROP_CONNECTION = 'c', //ro, subdev_conn_t + SUBDEV_PROP_ENABLED = 'e', //rw, bool SUBDEV_PROP_USE_LO_OFFSET = 'l', //ro, bool SUBDEV_PROP_RSSI = 'R', //ro, float SUBDEV_PROP_BANDWIDTH = 'B' //rw, double diff --git a/host/include/uhd/usrp/subdev_spec.hpp b/host/include/uhd/usrp/subdev_spec.hpp index 2f32509b9..5de3bb3b8 100644 --- a/host/include/uhd/usrp/subdev_spec.hpp +++ b/host/include/uhd/usrp/subdev_spec.hpp @@ -19,6 +19,7 @@ #define INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP #include <uhd/config.hpp> +#include <boost/operators.hpp> #include <vector> #include <string> @@ -27,7 +28,7 @@ namespace uhd{ namespace usrp{ /*! * A subdevice specification (daughterboard, subdevice) name pairing. */ - struct UHD_API subdev_spec_pair_t{ + struct UHD_API subdev_spec_pair_t : boost::equality_comparable<subdev_spec_pair_t>{ //! The daughterboard name std::string db_name; @@ -45,6 +46,9 @@ namespace uhd{ namespace usrp{ ); }; + //! overloaded comparison operator for subdev_spec_pair_t + UHD_API bool operator==(const subdev_spec_pair_t &, const subdev_spec_pair_t &); + /*! * A list of (daughterboard name, subdevice name) pairs: * |