summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-08 14:00:56 -0700
committerJosh Blum <josh@joshknows.com>2010-10-08 14:00:56 -0700
commit4b5792d2a5c6d101f602b5854fb2e7cfb3acf602 (patch)
tree3cc95a25a81aad08bfa94e1e7b33fd7b7d892464
parent2eb813f6845e8cd208d6a59e1d7873cf84c51b03 (diff)
downloaduhd-4b5792d2a5c6d101f602b5854fb2e7cfb3acf602.tar.gz
uhd-4b5792d2a5c6d101f602b5854fb2e7cfb3acf602.tar.bz2
uhd-4b5792d2a5c6d101f602b5854fb2e7cfb3acf602.zip
tvrx: added enabled prop to set and get
-rw-r--r--host/lib/usrp/dboard/db_tvrx.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx.cpp b/host/lib/usrp/dboard/db_tvrx.cpp
index 33507acaa..b1fc2ea76 100644
--- a/host/lib/usrp/dboard/db_tvrx.cpp
+++ b/host/lib/usrp/dboard/db_tvrx.cpp
@@ -447,6 +447,10 @@ void tvrx::rx_get(const wax::obj &key_, wax::obj &val){
val = SUBDEV_CONN_COMPLEX_IQ;
return;
+ case SUBDEV_PROP_ENABLED:
+ val = true; //always enabled
+ return;
+
case SUBDEV_PROP_USE_LO_OFFSET:
val = false;
return;
@@ -467,10 +471,14 @@ void tvrx::rx_set(const wax::obj &key_, const wax::obj &val){
case SUBDEV_PROP_GAIN:
this->set_gain(val.as<float>(), key.name);
return;
+
case SUBDEV_PROP_FREQ:
this->set_freq(val.as<double>());
return;
+ case SUBDEV_PROP_ENABLED:
+ return; //always enabled
+
default: UHD_THROW_PROP_SET_ERROR();
}
}