// // 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_duc_block_control(py::module& m) { py::class_( m, "duc_block_control") .def(py::init(&block_controller_factory::make_from)) .def("set_freq", &duc_block_control::set_freq, py::arg("freq"), py::arg("chan"), py::arg("time") = boost::optional()) .def("get_freq", &duc_block_control::get_freq) .def("get_frequency_range", &duc_block_control::get_frequency_range) .def("get_input_rate", &duc_block_control::get_input_rate) .def("get_output_rate", &duc_block_control::get_output_rate) .def("set_output_rate", &duc_block_control::set_output_rate) .def("get_input_rates", &duc_block_control::get_input_rates) .def("set_input_rate", &duc_block_control::set_input_rate); }