aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-10-12 11:47:31 +0200
committermichael-west <michael.west@ettus.com>2020-12-04 12:06:14 -0800
commit124ed644eed29ca5e245a2588eeaa8130f869223 (patch)
tree8932fd9e74754d958e97434e1d60848400b181a4 /host/lib/usrp/mpmd/mpmd_prop_tree.cpp
parent225fa105b6bffa5e60f9eb4f5d3c04cf62f9c91a (diff)
downloaduhd-124ed644eed29ca5e245a2588eeaa8130f869223.tar.gz
uhd-124ed644eed29ca5e245a2588eeaa8130f869223.tar.bz2
uhd-124ed644eed29ca5e245a2588eeaa8130f869223.zip
mpmd: Export RPC token and mb_args to the property tree
There are applications (typically for debugging purposes) which need access to the token and the mb_args. They are thus published via the property tree.
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_prop_tree.cpp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_prop_tree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
index dc559f91b..556e2e48d 100644
--- a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
+++ b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
@@ -101,6 +101,8 @@ void mpmd_impl::init_property_tree(
.set(mb->device_info.get("fpga_version", "UNKNOWN"));
tree->create<std::string>(mb_path / "fpga_version_hash")
.set(mb->device_info.get("fpga_version_hash", "UNKNOWN"));
+ tree->create<std::string>(mb_path / "token").set(mb->get_token());
+ tree->create<uhd::device_addr_t>(mb_path / "args").set(mb->mb_args);
/*** Clocking *******************************************************/
tree->create<std::string>(mb_path / "clock_source/value")