diff options
author | a-andre <13609565+a-andre@users.noreply.github.com> | 2021-12-09 23:20:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 17:20:55 -0500 |
commit | a2a682518fab2a91b5b4628586568f2e1cf1b65b (patch) | |
tree | 91d0c997b2276022d922c1bd9379020e3840a46d /gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc | |
parent | 97969b6f84cc6fa8730250c6c8111ff8d92eaf30 (diff) |
uhd: pybind rfnoc_{block, ddc, duc, rx/tx_radio} (#5291)
* uhd: pybind rfnoc_block
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* uhd: pybind rfnoc_rx/tx_radio
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* uhd: pybind rfnoc_ddc/duc
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* Fix TypeError: set_freq(): incompatible function arguments
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* uhd: rfnoc_rx/tx_streamer: Fix AttributeError
'gnuradio.uhd.uhd_python.rfnoc_rx_streamer' object has no attribute 'to_basic_block'
Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
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)) + + ; } |