summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/gr_uhd_usrp_sink.cc
diff options
context:
space:
mode:
authorJohnathan Corgan2012-04-04 17:02:59 -0700
committerJohnathan Corgan2012-04-04 17:02:59 -0700
commitb711a8683c8c4578c7a4ff0f3664f1321da1dcad (patch)
tree23e88f53035c11bbb90bdaaea48b88f6501266c9 /gr-uhd/lib/gr_uhd_usrp_sink.cc
parentf88b8cf5508d3ba446cb94f800c56d34279cf91e (diff)
parent27dd737afdab4123e40a1b886635b387b3c063c6 (diff)
downloadgnuradio-b711a8683c8c4578c7a4ff0f3664f1321da1dcad.tar.gz
gnuradio-b711a8683c8c4578c7a4ff0f3664f1321da1dcad.tar.bz2
gnuradio-b711a8683c8c4578c7a4ff0f3664f1321da1dcad.zip
Merge remote branch 'ncorgan/gr-uhd_swig'
Diffstat (limited to 'gr-uhd/lib/gr_uhd_usrp_sink.cc')
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_sink.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc
index 66be056df..d86165f65 100644
--- a/gr-uhd/lib/gr_uhd_usrp_sink.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc
@@ -66,9 +66,9 @@ public:
_dev = uhd::usrp::multi_usrp::make(device_addr);
}
- uhd::dict<std::string, std::string> get_usrp_info(size_t mboard, size_t chan){
+ 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_info(mboard, chan);
+ return _dev->get_usrp_tx_info(chan);
#else
throw std::runtime_error("not implemented in this version");
#endif
@@ -78,6 +78,10 @@ public:
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();