From f2509fd88c819e5222014442741f757c7fcba5fa Mon Sep 17 00:00:00 2001 From: Aaron Rossetto Date: Tue, 16 Jun 2020 13:38:29 -0500 Subject: python: Add window RFNoC block controller bindings --- host/lib/rfnoc/window_block_control_python.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 host/lib/rfnoc/window_block_control_python.hpp (limited to 'host/lib') 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 + +using namespace uhd::rfnoc; + +void export_window_block_control(py::module& m) +{ + py::class_( + m, "window_block_control") + .def(py::init(&block_controller_factory::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); +} -- cgit v1.2.3