diff options
author | Grant Meyerhoff <grant.meyerhoff@ni.com> | 2024-03-18 11:16:25 -0500 |
---|---|---|
committer | joergho <48011876+joergho@users.noreply.github.com> | 2024-03-19 12:52:23 +0100 |
commit | 24999473f4c90a888d9075d2e49bba67c63c20dc (patch) | |
tree | fbe316bcc525374ef2eaf9fa500554f7225fc951 | |
parent | host: zbx: Change abs to std abs (diff) | |
download | uhd-24999473f4c90a888d9075d2e49bba67c63c20dc.tar.xz uhd-24999473f4c90a888d9075d2e49bba67c63c20dc.zip |
python: add access for db_iface from property_tree
-rw-r--r-- | host/lib/property_tree_python.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/property_tree_python.cpp b/host/lib/property_tree_python.cpp index 99611be1f..2987dad8e 100644 --- a/host/lib/property_tree_python.cpp +++ b/host/lib/property_tree_python.cpp @@ -7,6 +7,7 @@ #include "property_tree_python.hpp" #include <uhd/property_tree.hpp> #include <uhd/types/device_addr.hpp> +#include <uhd/usrp/dboard_iface.hpp> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <string> @@ -41,6 +42,7 @@ void export_property_tree(py::module& m) export_property<std::string>(m, "str"); export_property<bool>(m, "bool"); export_property<uhd::device_addr_t>(m, "device_addr"); + export_property<uhd::usrp::dboard_iface::sptr>(m, "dboard_iface"); py::class_<property_tree>(m, "property_tree") .def("subtree", &property_tree::subtree, py::arg("path")) @@ -61,6 +63,9 @@ void export_property_tree(py::module& m) .def("access_device_addr", &property_tree::access<uhd::device_addr_t>, py::return_value_policy::reference) + .def("access_dboard_iface", + &property_tree::access<uhd::usrp::dboard_iface::sptr>, + py::return_value_policy::reference) // End of types ; } |