diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-12 16:01:01 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-12 16:01:01 -0800 |
commit | 2147c5f61c2eb6ef1a68419d7b1041a54cbb14a2 (patch) | |
tree | 48dbcb58924a3c547979cb4a95a5de35278aeec1 /host/lib/usrp/dboard_manager.cpp | |
parent | daed43a8a873ad5cc16ac8a3eb6db5a8fe126fa5 (diff) | |
download | uhd-2147c5f61c2eb6ef1a68419d7b1041a54cbb14a2.tar.gz uhd-2147c5f61c2eb6ef1a68419d7b1041a54cbb14a2.tar.bz2 uhd-2147c5f61c2eb6ef1a68419d7b1041a54cbb14a2.zip |
Removed freq min and max and gain min, max, and step...
replaced it with gain and freq range tuples.
This simplifies the api calls and subdev properties.
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r-- | host/lib/usrp/dboard_manager.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index 08b92e62a..23c2921d2 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -70,16 +70,15 @@ public: subdev_proxy(dboard_base::sptr subdev, type_t type) : _subdev(subdev), _type(type){ //initialize gain props struct - gain_handler::gain_props_t gain_props; - gain_props.gain_val_prop = SUBDEV_PROP_GAIN; - gain_props.gain_min_prop = SUBDEV_PROP_GAIN_MIN; - gain_props.gain_max_prop = SUBDEV_PROP_GAIN_MAX; - gain_props.gain_step_prop = SUBDEV_PROP_GAIN_STEP; - gain_props.gain_names_prop = SUBDEV_PROP_GAIN_NAMES; + gain_handler::props_t gain_props; + gain_props.value = SUBDEV_PROP_GAIN; + gain_props.range = SUBDEV_PROP_GAIN_RANGE; + gain_props.names = SUBDEV_PROP_GAIN_NAMES; //make a new gain handler _gain_handler = gain_handler::make( - this->get_link(), gain_props, boost::bind(&gain_handler::is_equal<subdev_prop_t>, _1, _2) + this->get_link(), gain_props, + boost::bind(&gain_handler::is_equal<subdev_prop_t>, _1, _2) ); } |