diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-01-29 11:44:05 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-02-04 08:11:16 -0600 |
commit | defcb174ebb274d4621a2b958a78ed6cb6cd6aed (patch) | |
tree | d979270c1a704fec855e6b7b7435600c6ebdd87f /host/lib/usrp/multi_usrp.cpp | |
parent | 1fb1ac4e2939197a6642ac1631a4c2e3c07ae00d (diff) | |
download | uhd-defcb174ebb274d4621a2b958a78ed6cb6cd6aed.tar.gz uhd-defcb174ebb274d4621a2b958a78ed6cb6cd6aed.tar.bz2 uhd-defcb174ebb274d4621a2b958a78ed6cb6cd6aed.zip |
multi_usrp: Add get_tree() API call
This allows access to the underlying property tree without having to
refer to the device object. Useful for RFNoC objects, where the device
object is not accessible.
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 202f8b2df..0ea25b099 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -405,6 +405,11 @@ public: return _dev; } + uhd::property_tree::sptr get_tree() const + { + return _tree; + } + dict<std::string, std::string> get_usrp_rx_info(size_t chan){ mboard_chan_pair mcp = rx_chan_to_mcp(chan); dict<std::string, std::string> usrp_info; |