summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/gr_uhd_usrp_sink.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/lib/gr_uhd_usrp_sink.cc')
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_sink.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc
index 7e7875898..d86165f65 100644
--- a/gr-uhd/lib/gr_uhd_usrp_sink.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc
@@ -66,10 +66,22 @@ public:
_dev = uhd::usrp::multi_usrp::make(device_addr);
}
+ uhd::dict<std::string, std::string> get_usrp_tx_info(size_t chan){
+ #ifdef UHD_USRP_MULTI_USRP_GET_USRP_INFO_API
+ return _dev->get_usrp_tx_info(chan);
+ #else
+ throw std::runtime_error("not implemented in this version");
+ #endif
+ }
+
void set_subdev_spec(const std::string &spec, size_t mboard){
return _dev->set_tx_subdev_spec(spec, mboard);
}
+ std::string get_subdev_spec(size_t mboard){
+ return _dev->get_tx_subdev_spec(mboard).to_string();
+ }
+
void set_samp_rate(double rate){
_dev->set_tx_rate(rate);
_sample_rate = this->get_samp_rate();