diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-06-01 15:01:04 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-06-09 07:09:34 -0500 |
commit | 87ba553c3f4504ce4bce09b67744a92edec1a41b (patch) | |
tree | e059a2777273a34582d8f96339086e436b5b3930 /host/lib | |
parent | 1117ef6cf0622d9ab1748b54acf91f0dd2f7d6bb (diff) | |
download | uhd-87ba553c3f4504ce4bce09b67744a92edec1a41b.tar.gz uhd-87ba553c3f4504ce4bce09b67744a92edec1a41b.tar.bz2 uhd-87ba553c3f4504ce4bce09b67744a92edec1a41b.zip |
python: Add FIR filter RFNoC block controller bindings
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/rfnoc/fir_filter_block_control_python.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/host/lib/rfnoc/fir_filter_block_control_python.hpp b/host/lib/rfnoc/fir_filter_block_control_python.hpp new file mode 100644 index 000000000..269f61669 --- /dev/null +++ b/host/lib/rfnoc/fir_filter_block_control_python.hpp @@ -0,0 +1,23 @@ +// +// 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/fir_filter_block_control.hpp> + +using namespace uhd::rfnoc; + +void export_fir_filter_block_control(py::module& m) +{ + py::class_<fir_filter_block_control, noc_block_base, fir_filter_block_control::sptr>( + m, "fir_filter_block_control") + .def(py::init(&block_controller_factory<fir_filter_block_control>::make_from)) + .def("get_max_num_coefficients", + &fir_filter_block_control::get_max_num_coefficients) + .def("set_coefficients", &fir_filter_block_control::set_coefficients) + .def("get_coefficients", &fir_filter_block_control::get_coefficients); +} |