diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-06-01 15:26:33 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-06-09 07:12:15 -0500 |
commit | 378287b381edfd15dcb97bb2632ff5fb91933f6b (patch) | |
tree | c5f6fbeca911aa98f48a030b4dfe8cfab09e0cda /host/lib | |
parent | 18460e34787772d606846c3b09190b80ae1e621d (diff) | |
download | uhd-378287b381edfd15dcb97bb2632ff5fb91933f6b.tar.gz uhd-378287b381edfd15dcb97bb2632ff5fb91933f6b.tar.bz2 uhd-378287b381edfd15dcb97bb2632ff5fb91933f6b.zip |
python: Add vector IIR RFNoC block controller bindings
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/rfnoc/radio_control_python.hpp | 2 | ||||
-rw-r--r-- | host/lib/rfnoc/vector_iir_block_control_python.hpp | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/host/lib/rfnoc/radio_control_python.hpp b/host/lib/rfnoc/radio_control_python.hpp index f16f0b6e9..21dfcb744 100644 --- a/host/lib/rfnoc/radio_control_python.hpp +++ b/host/lib/rfnoc/radio_control_python.hpp @@ -6,8 +6,8 @@ #pragma once -#include <uhd/rfnoc/radio_control.hpp> #include "block_controller_factory_python.hpp" +#include <uhd/rfnoc/radio_control.hpp> using namespace uhd::rfnoc; diff --git a/host/lib/rfnoc/vector_iir_block_control_python.hpp b/host/lib/rfnoc/vector_iir_block_control_python.hpp new file mode 100644 index 000000000..1042fb861 --- /dev/null +++ b/host/lib/rfnoc/vector_iir_block_control_python.hpp @@ -0,0 +1,26 @@ +// +// 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/vector_iir_block_control.hpp> + +using namespace uhd::rfnoc; + +void export_vector_iir_block_control(py::module& m) +{ + py::class_<vector_iir_block_control, noc_block_base, vector_iir_block_control::sptr>( + m, "vector_iir_block_control") + .def(py::init(&block_controller_factory<vector_iir_block_control>::make_from)) + .def("set_alpha", &vector_iir_block_control::set_alpha) + .def("get_alpha", &vector_iir_block_control::get_alpha) + .def("set_beta", &vector_iir_block_control::set_beta) + .def("get_beta", &vector_iir_block_control::get_beta) + .def("set_delay", &vector_iir_block_control::set_delay) + .def("get_delay", &vector_iir_block_control::get_delay) + .def("get_max_delay", &vector_iir_block_control::get_max_delay); +} |