1 //
2 // Copyright 2020 Ettus Research, a National Instruments Brand
3 //
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 #pragma once
8 
9 #include "block_controller_factory_python.hpp"
10 #include <uhd/rfnoc/moving_average_block_control.hpp>
11 
12 using namespace uhd::rfnoc;
13 
export_moving_average_block_control(py::module & m)14 void export_moving_average_block_control(py::module& m)
15 {
16     py::class_<moving_average_block_control,
17         noc_block_base,
18         moving_average_block_control::sptr>(m, "moving_average_block_control")
19         .def(py::init(&block_controller_factory<moving_average_block_control>::make_from))
20         .def("set_sum_len", &moving_average_block_control::set_sum_len)
21         .def("get_sum_len", &moving_average_block_control::get_sum_len)
22         .def("set_divisor", &moving_average_block_control::set_divisor)
23         .def("get_divisor", &moving_average_block_control::get_divisor);
24 }
25