summaryrefslogtreecommitdiff
path: root/gr-uhd/python/uhd/bindings/rfnoc_rx_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_rx_streamer_python.cc
parent97969b6f84cc6fa8730250c6c8111ff8d92eaf30 (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_rx_streamer_python.cc')
-rw-r--r--gr-uhd/python/uhd/bindings/rfnoc_rx_streamer_python.cc20
1 files changed, 17 insertions, 3 deletions
diff --git a/gr-uhd/python/uhd/bindings/rfnoc_rx_streamer_python.cc b/gr-uhd/python/uhd/bindings/rfnoc_rx_streamer_python.cc
index 5363af29b0..be4c1fde06 100644
--- a/gr-uhd/python/uhd/bindings/rfnoc_rx_streamer_python.cc
+++ b/gr-uhd/python/uhd/bindings/rfnoc_rx_streamer_python.cc
@@ -33,11 +33,25 @@ void bind_rfnoc_rx_streamer(py::module& m)
using rfnoc_rx_streamer = ::gr::uhd::rfnoc_rx_streamer;
- py::class_<rfnoc_rx_streamer, std::shared_ptr<rfnoc_rx_streamer>>(
+ py::class_<rfnoc_rx_streamer,
+ gr::sync_block,
+ gr::block,
+ gr::basic_block,
+ std::shared_ptr<rfnoc_rx_streamer>>(
m, "rfnoc_rx_streamer", D(rfnoc_rx_streamer))
- .def(py::init(&rfnoc_rx_streamer::make), D(rfnoc_rx_streamer, make))
+ .def(py::init(&rfnoc_rx_streamer::make),
+ py::arg("graph"),
+ py::arg("num_chans"),
+ py::arg("stream_args"),
+ py::arg("vlen") = 1,
+ py::arg("issue_stream_cmd_on_start") = true,
+ D(rfnoc_rx_streamer, make))
+
+
.def("get_unique_id",
&rfnoc_rx_streamer::get_unique_id,
- D(rfnoc_rx_streamer, get_unique_id));
+ D(rfnoc_rx_streamer, get_unique_id))
+
+ ;
}