diff options
author | Josh Blum <josh@joshknows.com> | 2010-09-30 11:05:33 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-09-30 11:05:33 -0700 |
commit | a4f8ad59b2abc6d4b1a6c65aa2652083486e3065 (patch) | |
tree | 913ee903f92527980d8bf1f893d9f7d7a58547c7 /host/lib/usrp/dboard/db_dbsrx.cpp | |
parent | b8e62bb9bf86d4804defe738b2a7140cd9417a6f (diff) | |
download | uhd-a4f8ad59b2abc6d4b1a6c65aa2652083486e3065.tar.gz uhd-a4f8ad59b2abc6d4b1a6c65aa2652083486e3065.tar.bz2 uhd-a4f8ad59b2abc6d4b1a6c65aa2652083486e3065.zip |
usrp: added subdev enabled property
the dboard manager will disable all subdevs at startup and shutdown
setting the subdev spec will enable only the subdevs in use
all dboards are currently implemented as always enabled
nothing tested
Diffstat (limited to 'host/lib/usrp/dboard/db_dbsrx.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_dbsrx.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/db_dbsrx.cpp b/host/lib/usrp/dboard/db_dbsrx.cpp index 81434f054..23cafea53 100644 --- a/host/lib/usrp/dboard/db_dbsrx.cpp +++ b/host/lib/usrp/dboard/db_dbsrx.cpp @@ -551,6 +551,10 @@ void dbsrx::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; @@ -587,6 +591,9 @@ void dbsrx::rx_set(const wax::obj &key_, const wax::obj &val){ this->set_gain(val.as<float>(), key.name); return; + case SUBDEV_PROP_ENABLED: + return; //always enabled + case SUBDEV_PROP_BANDWIDTH: this->set_bandwidth(val.as<float>()); return; |