aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/mpmd_impl.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-01-23 18:27:11 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-07 17:01:06 -0800
commit3df3b6cc62911f1a87d2c7ff0775e7c2644900d5 (patch)
tree5d9d6b890be85f99c7686ad94dd4ba4278d20210 /host/lib/usrp/mpmd/mpmd_impl.hpp
parent342971d2683b7b1a53f38b9e88749add37c9fa36 (diff)
downloaduhd-3df3b6cc62911f1a87d2c7ff0775e7c2644900d5.tar.gz
uhd-3df3b6cc62911f1a87d2c7ff0775e7c2644900d5.tar.bz2
uhd-3df3b6cc62911f1a87d2c7ff0775e7c2644900d5.zip
mpmd: Factor find and prop tree init code out of mpmd_impl.cpp
No functional changes.
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_impl.hpp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_impl.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.hpp b/host/lib/usrp/mpmd/mpmd_impl.hpp
index c935a8b8e..291ee7fdd 100644
--- a/host/lib/usrp/mpmd/mpmd_impl.hpp
+++ b/host/lib/usrp/mpmd/mpmd_impl.hpp
@@ -15,6 +15,7 @@
#include <uhd/types/dict.hpp>
#include <uhd/utils/tasks.hpp>
#include <uhd/transport/muxed_zero_copy_if.hpp>
+#include <uhd/property_tree.hpp>
#include <boost/optional.hpp>
#include <map>
#include <memory>
@@ -257,6 +258,19 @@ public:
*/
size_t identify_mboard_by_xbar_addr(const size_t xbar_addr) const;
+ /*! Initialize property tree for a single device.
+ *
+ * \param tree Property tree reference (to the whole tree)
+ * \param mb_path Subtree path for this device
+ * \param mb Reference to the actual device
+ */
+ static void init_property_tree(
+ uhd::property_tree::sptr tree,
+ fs_path mb_path,
+ mpmd_mboard_impl *mb
+ );
+
+
/*************************************************************************
* Private attributes
************************************************************************/