diff options
Diffstat (limited to 'gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc')
-rw-r--r-- | gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc b/gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc index 96f2fe62ae..acca2c5b90 100644 --- a/gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc +++ b/gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc @@ -33,11 +33,24 @@ void bind_rfnoc_tx_streamer(py::module& m) using rfnoc_tx_streamer = ::gr::uhd::rfnoc_tx_streamer; - py::class_<rfnoc_tx_streamer, std::shared_ptr<rfnoc_tx_streamer>>( + py::class_<rfnoc_tx_streamer, + gr::sync_block, + gr::block, + gr::basic_block, + std::shared_ptr<rfnoc_tx_streamer>>( m, "rfnoc_tx_streamer", D(rfnoc_tx_streamer)) - .def(py::init(&rfnoc_tx_streamer::make), D(rfnoc_tx_streamer, make)) + .def(py::init(&rfnoc_tx_streamer::make), + py::arg("graph"), + py::arg("num_chans"), + py::arg("stream_args"), + py::arg("vlen") = 1, + D(rfnoc_tx_streamer, make)) + + .def("get_unique_id", &rfnoc_tx_streamer::get_unique_id, - D(rfnoc_tx_streamer, get_unique_id)); + D(rfnoc_tx_streamer, get_unique_id)) + + ; } |