summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gnuradio/uhd/usrp_sink.h
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
committerMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
commite76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch)
tree1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-uhd/include/gnuradio/uhd/usrp_sink.h
parent98348e37209aa7daeb96fe5ead815e5b083dc6da (diff)
parent39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff)
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG. Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gr-uhd/include/gnuradio/uhd/usrp_sink.h')
-rw-r--r--gr-uhd/include/gnuradio/uhd/usrp_sink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gr-uhd/include/gnuradio/uhd/usrp_sink.h b/gr-uhd/include/gnuradio/uhd/usrp_sink.h
index 504856c6e7..03002b9174 100644
--- a/gr-uhd/include/gnuradio/uhd/usrp_sink.h
+++ b/gr-uhd/include/gnuradio/uhd/usrp_sink.h
@@ -101,6 +101,14 @@ public:
const ::uhd::stream_args_t& stream_args,
const std::string& tsb_tag_name = "");
+ // Also accept a string for the device_addr
+ static sptr make(const std::string& device_addr_str,
+ const ::uhd::stream_args_t& stream_args,
+ const std::string& tsb_tag_name = "")
+ {
+ return make(::uhd::device_addr_t(device_addr_str), stream_args, tsb_tag_name);
+ }
+
/*!
* Set the start time for outgoing samples.
* To control when samples are transmitted,