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_rfnoc.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_rfnoc.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp_rfnoc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp_rfnoc.cpp b/host/lib/usrp/multi_usrp_rfnoc.cpp index b2070c53d..b34860989 100644 --- a/host/lib/usrp/multi_usrp_rfnoc.cpp +++ b/host/lib/usrp/multi_usrp_rfnoc.cpp @@ -161,6 +161,11 @@ public: return nullptr; } + uhd::property_tree::sptr get_tree() const + { + return _tree; + } + rx_streamer::sptr get_rx_stream(const stream_args_t& args_) { std::lock_guard<std::recursive_mutex> l(_graph_mutex); |