From 1ec7380cf708ab335b339f374d1f64826c700154 Mon Sep 17 00:00:00 2001 From: mattprost Date: Tue, 14 Jul 2020 17:28:19 -0500 Subject: python: Add moving average RFNoC block controller bindings Signed-off-by: mattprost --- .../rfnoc/moving_average_block_control_python.hpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 host/lib/rfnoc/moving_average_block_control_python.hpp (limited to 'host/lib') diff --git a/host/lib/rfnoc/moving_average_block_control_python.hpp b/host/lib/rfnoc/moving_average_block_control_python.hpp new file mode 100644 index 000000000..67fd9b594 --- /dev/null +++ b/host/lib/rfnoc/moving_average_block_control_python.hpp @@ -0,0 +1,24 @@ +// +// 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_moving_average_block_control(py::module& m) +{ + py::class_(m, "moving_average_block_control") + .def(py::init(&block_controller_factory::make_from)) + .def("set_sum_len", &moving_average_block_control::set_sum_len) + .def("get_sum_len", &moving_average_block_control::get_sum_len) + .def("set_divisor", &moving_average_block_control::set_divisor) + .def("get_divisor", &moving_average_block_control::get_divisor); +} -- cgit v1.2.3