summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/gr_uhd_usrp_source.cc
diff options
context:
space:
mode:
authorNicholas Corgan2012-04-04 16:56:14 -0700
committerNicholas Corgan2012-04-04 16:56:14 -0700
commit27dd737afdab4123e40a1b886635b387b3c063c6 (patch)
tree919302a2ba4aa07b738924228be72b048e4fb2e6 /gr-uhd/lib/gr_uhd_usrp_source.cc
parentfc03a9b18ca874cac546b7a414089d3649dce48d (diff)
downloadgnuradio-27dd737afdab4123e40a1b886635b387b3c063c6.tar.gz
gnuradio-27dd737afdab4123e40a1b886635b387b3c063c6.tar.bz2
gnuradio-27dd737afdab4123e40a1b886635b387b3c063c6.zip
gr-uhd: uhd_siggen, uhd_siggen_gui, and uhd_fft include information on the user's UHD version and USRP configuration
Diffstat (limited to 'gr-uhd/lib/gr_uhd_usrp_source.cc')
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_source.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc
index ba87ae8e0..49558cee6 100644
--- a/gr-uhd/lib/gr_uhd_usrp_source.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_source.cc
@@ -70,9 +70,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_rx_info(size_t chan){
#ifdef UHD_USRP_MULTI_USRP_GET_USRP_INFO_API
- return _dev->get_usrp_info(mboard, chan);
+ return _dev->get_usrp_rx_info(chan);
#else
throw std::runtime_error("not implemented in this version");
#endif
@@ -82,6 +82,10 @@ public:
return _dev->set_rx_subdev_spec(spec, mboard);
}
+ std::string get_subdev_spec(size_t mboard){
+ return _dev->get_rx_subdev_spec(mboard).to_string();
+ }
+
void set_samp_rate(double rate){
_dev->set_rx_rate(rate);
}