aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_base.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-30 10:11:49 -0700
committerJosh Blum <josh@joshknows.com>2011-11-07 11:20:04 -0800
commitd9035414a27f484b89816e6e99c7f14d1769dee0 (patch)
tree2b6993265ae21e939b22734293dd519d0ed6a879 /host/lib/usrp/dboard_base.cpp
parentf3afd2eb94a65b4e6494c269ff67cd283dcad1de (diff)
downloaduhd-d9035414a27f484b89816e6e99c7f14d1769dee0.tar.gz
uhd-d9035414a27f484b89816e6e99c7f14d1769dee0.tar.bz2
uhd-d9035414a27f484b89816e6e99c7f14d1769dee0.zip
usrp: work on dboard code to use subtrees to populate frontend props
Diffstat (limited to 'host/lib/usrp/dboard_base.cpp')
-rw-r--r--host/lib/usrp/dboard_base.cpp41
1 files changed, 9 insertions, 32 deletions
diff --git a/host/lib/usrp/dboard_base.cpp b/host/lib/usrp/dboard_base.cpp
index e14c9d144..fe14c02b9 100644
--- a/host/lib/usrp/dboard_base.cpp
+++ b/host/lib/usrp/dboard_base.cpp
@@ -20,6 +20,7 @@
#include <boost/format.hpp>
#include <stdexcept>
+using namespace uhd;
using namespace uhd::usrp;
/***********************************************************************
@@ -34,10 +35,6 @@ dboard_base::dboard_base(ctor_args_t args){
_impl->args = *static_cast<dboard_ctor_args_t *>(args);
}
-dboard_base::~dboard_base(void){
- /* NOP */
-}
-
std::string dboard_base::get_subdev_name(void){
return _impl->args.sd_name;
}
@@ -54,6 +51,14 @@ dboard_id_t dboard_base::get_tx_id(void){
return _impl->args.tx_id;
}
+property_tree::sptr dboard_base::get_rx_subtree(void){
+ return _impl->args.rx_subtree;
+}
+
+property_tree::sptr dboard_base::get_tx_subtree(void){
+ return _impl->args.tx_subtree;
+}
+
/***********************************************************************
* xcvr dboard dboard_base class
**********************************************************************/
@@ -70,10 +75,6 @@ xcvr_dboard_base::xcvr_dboard_base(ctor_args_t args) : dboard_base(args){
}
}
-xcvr_dboard_base::~xcvr_dboard_base(void){
- /* NOP */
-}
-
/***********************************************************************
* rx dboard dboard_base class
**********************************************************************/
@@ -86,18 +87,6 @@ rx_dboard_base::rx_dboard_base(ctor_args_t args) : dboard_base(args){
}
}
-rx_dboard_base::~rx_dboard_base(void){
- /* NOP */
-}
-
-void rx_dboard_base::tx_get(const wax::obj &, wax::obj &){
- throw uhd::runtime_error("cannot call tx_get on a rx dboard");
-}
-
-void rx_dboard_base::tx_set(const wax::obj &, const wax::obj &){
- throw uhd::runtime_error("cannot call tx_set on a rx dboard");
-}
-
/***********************************************************************
* tx dboard dboard_base class
**********************************************************************/
@@ -109,15 +98,3 @@ tx_dboard_base::tx_dboard_base(ctor_args_t args) : dboard_base(args){
) % get_rx_id().to_pp_string() % dboard_id_t::none().to_pp_string()));
}
}
-
-tx_dboard_base::~tx_dboard_base(void){
- /* NOP */
-}
-
-void tx_dboard_base::rx_get(const wax::obj &, wax::obj &){
- throw uhd::runtime_error("cannot call rx_get on a tx dboard");
-}
-
-void tx_dboard_base::rx_set(const wax::obj &, const wax::obj &){
- throw uhd::runtime_error("cannot call rx_set on a tx dboard");
-}