aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc
diff options
context:
space:
mode:
authorAaron Rossetto <aaron.rossetto@ni.com>2020-06-16 13:38:29 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-06-29 13:41:15 -0500
commitf2509fd88c819e5222014442741f757c7fcba5fa (patch)
tree97b0275495b70a53cfda49de5599ed98d006e762 /host/lib/rfnoc
parent2dbed2d90ebc763847a91f35aa7dc26a9ae72835 (diff)
downloaduhd-f2509fd88c819e5222014442741f757c7fcba5fa.tar.gz
uhd-f2509fd88c819e5222014442741f757c7fcba5fa.tar.bz2
uhd-f2509fd88c819e5222014442741f757c7fcba5fa.zip
python: Add window RFNoC block controller bindings
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r--host/lib/rfnoc/window_block_control_python.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/host/lib/rfnoc/window_block_control_python.hpp b/host/lib/rfnoc/window_block_control_python.hpp
new file mode 100644
index 000000000..4c195f9f0
--- /dev/null
+++ b/host/lib/rfnoc/window_block_control_python.hpp
@@ -0,0 +1,22 @@
+//
+// Copyright 2020 Ettus Research, a National Instruments Brand
+//
+// SPDX-License-Identifier: GPL-3.0-or-later
+//
+
+#pragma once
+
+#include "block_controller_factory_python.hpp"
+#include <uhd/rfnoc/window_block_control.hpp>
+
+using namespace uhd::rfnoc;
+
+void export_window_block_control(py::module& m)
+{
+ py::class_<window_block_control, noc_block_base, window_block_control::sptr>(
+ m, "window_block_control")
+ .def(py::init(&block_controller_factory<window_block_control>::make_from))
+ .def("get_max_num_coefficients", &window_block_control::get_max_num_coefficients)
+ .def("set_coefficients", &window_block_control::set_coefficients)
+ .def("get_coefficients", &window_block_control::get_coefficients);
+}