diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-28 18:34:04 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-28 18:34:04 -0700 |
commit | 92b5034cb5a6e17fe7ebc437f7ef26147d69eba3 (patch) | |
tree | 57aaeb9964b9d990510aa5cf4a72d67581f0129b /host/lib/usrp/dboard/db_basic_and_lf.cpp | |
parent | f9edd3865ca0f61a9e80fd917521b49292d5ecb1 (diff) | |
parent | a8d2c2944b329218af1c0b171b92f775b679b409 (diff) | |
download | uhd-92b5034cb5a6e17fe7ebc437f7ef26147d69eba3.tar.gz uhd-92b5034cb5a6e17fe7ebc437f7ef26147d69eba3.tar.bz2 uhd-92b5034cb5a6e17fe7ebc437f7ef26147d69eba3.zip |
Merge branch 'master' into flow_ctrl
Diffstat (limited to 'host/lib/usrp/dboard/db_basic_and_lf.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_basic_and_lf.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/db_basic_and_lf.cpp b/host/lib/usrp/dboard/db_basic_and_lf.cpp index 7d0146ef0..73f894374 100644 --- a/host/lib/usrp/dboard/db_basic_and_lf.cpp +++ b/host/lib/usrp/dboard/db_basic_and_lf.cpp @@ -31,6 +31,16 @@ using namespace uhd::usrp; using namespace boost::assign; /*********************************************************************** + * Constants + **********************************************************************/ +static const uhd::dict<std::string, double> subdev_bandwidth_scalar = map_list_of + ("A", 1.0) + ("B", 1.0) + ("AB", 2.0) + ("BA", 2.0) +; + +/*********************************************************************** * The basic and lf boards: * They share a common class because only the frequency bounds differ. **********************************************************************/ @@ -168,7 +178,7 @@ void basic_rx::rx_get(const wax::obj &key_, wax::obj &val){ return; case SUBDEV_PROP_BANDWIDTH: - val = 2*_max_freq; //we want complex double-sided + val = subdev_bandwidth_scalar[get_subdev_name()]*_max_freq; return; default: UHD_THROW_PROP_GET_ERROR(); @@ -279,7 +289,7 @@ void basic_tx::tx_get(const wax::obj &key_, wax::obj &val){ return; case SUBDEV_PROP_BANDWIDTH: - val = 2*_max_freq; //we want complex double-sided + val = subdev_bandwidth_scalar[get_subdev_name()]*_max_freq; return; default: UHD_THROW_PROP_GET_ERROR(); |