aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_unknown.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-27 16:37:08 -0700
committerJosh Blum <josh@joshknows.com>2010-10-27 16:37:08 -0700
commitf9edd3865ca0f61a9e80fd917521b49292d5ecb1 (patch)
tree5afaf7a691dbb5849c624c8af46501ddd414be9e /host/lib/usrp/dboard/db_unknown.cpp
parent971f6de77c6b67515b5d37d748e823da155b310c (diff)
parent630c007bbbabce90ffe3578d47ad7acc187bdc30 (diff)
downloaduhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.tar.gz
uhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.tar.bz2
uhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.zip
Merge branch 'next' into flow_ctrl
Conflicts: host/include/uhd/types/metadata.hpp
Diffstat (limited to 'host/lib/usrp/dboard/db_unknown.cpp')
-rw-r--r--host/lib/usrp/dboard/db_unknown.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_unknown.cpp b/host/lib/usrp/dboard/db_unknown.cpp
index ec7ab440b..a342471c4 100644
--- a/host/lib/usrp/dboard/db_unknown.cpp
+++ b/host/lib/usrp/dboard/db_unknown.cpp
@@ -19,6 +19,7 @@
#include <uhd/types/ranges.hpp>
#include <uhd/utils/assert.hpp>
#include <uhd/utils/static.hpp>
+#include <uhd/utils/warning.hpp>
#include <uhd/usrp/dboard_base.hpp>
#include <uhd/usrp/dboard_manager.hpp>
#include <boost/assign/list_of.hpp>
@@ -134,6 +135,10 @@ void unknown_rx::rx_get(const wax::obj &key_, wax::obj &val){
val = true; //there is no LO, so it must be true!
return;
+ case SUBDEV_PROP_BANDWIDTH:
+ val = 0.0;
+ return;
+
default: UHD_THROW_PROP_GET_ERROR();
}
}
@@ -158,12 +163,18 @@ void unknown_rx::rx_set(const wax::obj &key_, const wax::obj &val){
case SUBDEV_PROP_ENABLED:
return; //always enabled
+ case SUBDEV_PROP_BANDWIDTH:
+ uhd::warning::post(
+ str(boost::format("Unknown Daughterboard: No tunable bandwidth, fixed filtered to 0.0MHz"))
+ );
+ return;
+
default: UHD_THROW_PROP_SET_ERROR();
}
}
/***********************************************************************
- * Basic and LF TX dboard
+ * Unknown TX dboard
**********************************************************************/
unknown_tx::unknown_tx(ctor_args_t args) : tx_dboard_base(args){
/* NOP */
@@ -230,6 +241,10 @@ void unknown_tx::tx_get(const wax::obj &key_, wax::obj &val){
val = true; //there is no LO, so it must be true!
return;
+ case SUBDEV_PROP_BANDWIDTH:
+ val = 0.0;
+ return;
+
default: UHD_THROW_PROP_GET_ERROR();
}
}
@@ -254,6 +269,12 @@ void unknown_tx::tx_set(const wax::obj &key_, const wax::obj &val){
case SUBDEV_PROP_ENABLED:
return; //always enabled
+ case SUBDEV_PROP_BANDWIDTH:
+ uhd::warning::post(
+ str(boost::format("Unknown Daughterboard: No tunable bandwidth, fixed filtered to 0.0MHz"))
+ );
+ return;
+
default: UHD_THROW_PROP_SET_ERROR();
}
}