aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authormattprost <matt.prost@ni.com>2022-03-14 14:27:52 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-04-07 13:28:02 -0700
commitd2a7bce0d0f559988a2c0041bab95bd2e41464bd (patch)
treedd05d904e18b3e4a089f8a62e617cf871311c022 /host/lib
parentab5de0b03d5616dc05a09f37f3694e3f18ec51ff (diff)
downloaduhd-d2a7bce0d0f559988a2c0041bab95bd2e41464bd.tar.gz
uhd-d2a7bce0d0f559988a2c0041bab95bd2e41464bd.tar.bz2
uhd-d2a7bce0d0f559988a2c0041bab95bd2e41464bd.zip
rfnoc: Add filter_node python bindings
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/rfnoc/rfnoc_python.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/rfnoc/rfnoc_python.hpp b/host/lib/rfnoc/rfnoc_python.hpp
index dd776da37..cd40afebd 100644
--- a/host/lib/rfnoc/rfnoc_python.hpp
+++ b/host/lib/rfnoc/rfnoc_python.hpp
@@ -11,6 +11,7 @@
#include <uhd/features/discoverable_feature.hpp>
#include <uhd/features/gpio_power_iface.hpp>
#include <uhd/rfnoc/block_id.hpp>
+#include <uhd/rfnoc/filter_node.hpp>
#include <uhd/rfnoc/graph_edge.hpp>
#include <uhd/rfnoc/mb_controller.hpp>
#include <uhd/rfnoc/noc_block_base.hpp>
@@ -233,6 +234,14 @@ void export_rfnoc(py::module& m)
.def("set_external_power", &uhd::features::gpio_power_iface::set_external_power)
.def("get_external_power_status", &uhd::features::gpio_power_iface::get_external_power_status);
+ py::class_<detail::filter_node>(m, "filter_node")
+ .def("get_rx_filter_names", &detail::filter_node::get_rx_filter_names)
+ .def("get_rx_filter", &detail::filter_node::get_rx_filter)
+ .def("set_rx_filter", &detail::filter_node::set_rx_filter)
+ .def("get_tx_filter_names", &detail::filter_node::get_tx_filter_names)
+ .def("get_tx_filter", &detail::filter_node::get_tx_filter)
+ .def("set_tx_filter", &detail::filter_node::set_tx_filter);
+
py::class_<mb_controller, mb_controller::sptr>(m, "mb_controller")
.def("get_num_timekeepers", &mb_controller::get_num_timekeepers)
.def("get_timekeeper", &mb_controller::get_timekeeper)