aboutsummaryrefslogtreecommitdiffstats
path: root/gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc
diff options
context:
space:
mode:
authora-andre <13609565+a-andre@users.noreply.github.com>2021-12-09 23:20:55 +0100
committerGitHub <noreply@github.com>2021-12-09 17:20:55 -0500
commita2a682518fab2a91b5b4628586568f2e1cf1b65b (patch)
tree91d0c997b2276022d922c1bd9379020e3840a46d /gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc
parentdoxygen: Remove obsolete COLS_IN_ALPHA_INDEX for OOT modules. (diff)
downloadgnuradio-a2a682518fab2a91b5b4628586568f2e1cf1b65b.tar.xz
gnuradio-a2a682518fab2a91b5b4628586568f2e1cf1b65b.zip
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 '')
-rw-r--r--gr-uhd/python/uhd/bindings/rfnoc_tx_streamer_python.cc19
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 96f2fe62a..acca2c5b9 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))
+
+ ;
}