diff options
author | Jason Abele <jason@ettus.com> | 2011-07-15 14:21:22 -0700 |
---|---|---|
committer | Jason Abele <jason@ettus.com> | 2011-07-15 14:21:22 -0700 |
commit | 7c84c240726114525b2501fb8e1bd8b112690983 (patch) | |
tree | 589b0068ff53f51f4d5a85dc2517335bad8f918b /host/lib/usrp/dboard/db_wbx_simple.cpp | |
parent | 3fea33db9a5d951b9db7c7653eaae0e6291de0bc (diff) | |
download | uhd-7c84c240726114525b2501fb8e1bd8b112690983.tar.gz uhd-7c84c240726114525b2501fb8e1bd8b112690983.tar.bz2 uhd-7c84c240726114525b2501fb8e1bd8b112690983.zip |
Updates to WBX dboard driver for version 3 support
Use step attenuator for TX gain control
Diffstat (limited to 'host/lib/usrp/dboard/db_wbx_simple.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_wbx_simple.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/db_wbx_simple.cpp b/host/lib/usrp/dboard/db_wbx_simple.cpp index 602ce389d..aa4937b19 100644 --- a/host/lib/usrp/dboard/db_wbx_simple.cpp +++ b/host/lib/usrp/dboard/db_wbx_simple.cpp @@ -16,7 +16,7 @@ // // Antenna constants -#define ANTSW_IO ((1 << 5)|(1 << 15)) // on UNIT_TX, 0 = TX, 1 = RX, on UNIT_RX 0 = main ant, 1 = RX2 +#define ANTSW_IO ((1 << 15)) // on UNIT_TX, 0 = TX, 1 = RX, on UNIT_RX 0 = main ant, 1 = RX2 #define ANT_TX 0 //the tx line is transmitting #define ANT_RX ANTSW_IO //the tx line is receiving #define ANT_TXRX 0 //the rx line is on txrx @@ -150,7 +150,10 @@ void wbx_simple::rx_get(const wax::obj &key_, wax::obj &val){ //handle the get request conditioned on the key switch(key.as<subdev_prop_t>()){ case SUBDEV_PROP_NAME: - val = std::string("WBX RX + Simple GDB"); + if (is_v3()) + val = std::string("WBX v3 RX + Simple GDB"); + else + val = std::string("WBX RX + Simple GDB"); return; case SUBDEV_PROP_FREQ: @@ -204,7 +207,10 @@ void wbx_simple::tx_get(const wax::obj &key_, wax::obj &val){ //handle the get request conditioned on the key switch(key.as<subdev_prop_t>()){ case SUBDEV_PROP_NAME: - val = std::string("WBX TX + Simple GDB"); + if (is_v3()) + val = std::string("WBX v3 TX + Simple GDB"); + else + val = std::string("WBX TX + Simple GDB"); return; case SUBDEV_PROP_FREQ: |