diff options
author | Jason Abele <jason@ettus.com> | 2010-10-28 18:06:01 -0700 |
---|---|---|
committer | Jason Abele <jason@ettus.com> | 2010-10-28 18:14:35 -0700 |
commit | 6a3e499f586513d48ef648aa910e252b7d8b046b (patch) | |
tree | 04a65feae5af3cb08aa686dee644ddfeb081aefa /host/lib/usrp/dboard/db_basic_and_lf.cpp | |
parent | 5f0c948ecc501ff03ba242f64edbdfaa9f748f38 (diff) | |
download | uhd-6a3e499f586513d48ef648aa910e252b7d8b046b.tar.gz uhd-6a3e499f586513d48ef648aa910e252b7d8b046b.tar.bz2 uhd-6a3e499f586513d48ef648aa910e252b7d8b046b.zip |
Fix Bandwidth for IQ subdevs on Basic/LF
Additional typo cleanup and fix WBX bandwidth
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 4c49b3bff..f03dd43d1 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. **********************************************************************/ @@ -163,7 +173,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(); @@ -274,7 +284,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(); |