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/null_block_control.hpp>
11
12 using namespace uhd::rfnoc;
13
export_null_block_control(py::module & m)14 void export_null_block_control(py::module& m)
15 {
16 py::class_<null_block_control, noc_block_base, null_block_control::sptr>(
17 m, "null_block_control")
18 .def(py::init(&block_controller_factory<null_block_control>::make_from))
19 .def("issue_stream_cmd", &null_block_control::issue_stream_cmd)
20 .def("reset_counters", &null_block_control::reset_counters)
21 .def("set_bytes_per_packet", &null_block_control::set_bytes_per_packet)
22 .def("set_throttle_cycles", &null_block_control::set_throttle_cycles)
23 .def("get_lines_per_packet", &null_block_control::get_lines_per_packet)
24 .def("get_bytes_per_packet", &null_block_control::get_bytes_per_packet)
25 .def("get_throttle_cycles", &null_block_control::get_throttle_cycles)
26 .def("get_count", &null_block_control::get_count);
27 }
28