summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-27 17:46:08 -0700
committerNick Foster <nick@nerdnetworks.org>2010-07-27 17:46:08 -0700
commit41a36699e6e5f892a19586cde1b72fa6767c2888 (patch)
tree95c5cfaffa48391bee95744bddc91e142c898272
parentc08674e26bfb456242efd90b5c7d32b8d6179c64 (diff)
downloaduhd-41a36699e6e5f892a19586cde1b72fa6767c2888.tar.gz
uhd-41a36699e6e5f892a19586cde1b72fa6767c2888.tar.bz2
uhd-41a36699e6e5f892a19586cde1b72fa6767c2888.zip
Interface access methods for users to access dboards.
-rw-r--r--host/include/uhd/usrp/simple_usrp.hpp6
-rw-r--r--host/lib/usrp/simple_usrp.cpp12
2 files changed, 18 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/simple_usrp.hpp b/host/include/uhd/usrp/simple_usrp.hpp
index a100579ce..8fc6d59d9 100644
--- a/host/include/uhd/usrp/simple_usrp.hpp
+++ b/host/include/uhd/usrp/simple_usrp.hpp
@@ -152,6 +152,12 @@ public:
virtual std::vector<std::string> get_tx_antennas(void) = 0;
virtual bool get_tx_lo_locked(void) = 0;
+
+ /*******************************************************************
+ * Interface access methods
+ ******************************************************************/
+ virtual wax::obj get_rx_dboard_iface(void) = 0;
+ virtual wax::obj get_tx_dboard_iface(void) = 0;
};
}}
diff --git a/host/lib/usrp/simple_usrp.cpp b/host/lib/usrp/simple_usrp.cpp
index 704232782..a8c20c439 100644
--- a/host/lib/usrp/simple_usrp.cpp
+++ b/host/lib/usrp/simple_usrp.cpp
@@ -228,6 +228,18 @@ public:
return _tx_subdev[SUBDEV_PROP_LO_LOCKED].as<bool>();
}
+ /*******************************************************************
+ * Interface access methods
+ ******************************************************************/
+
+ wax::obj get_rx_dboard_iface(void) {
+ return _rx_dboard;
+ }
+
+ wax::obj get_tx_dboard_iface(void) {
+ return _tx_dboard;
+ }
+
private:
device::sptr _dev;
wax::obj _mboard;