summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/gr_uhd_usrp_source.cc
diff options
context:
space:
mode:
authorJosh Blum2011-10-16 11:49:11 -0700
committerJosh Blum2011-11-07 18:56:28 -0800
commitf3d2a28dc8d1abfe42435a4b5040eb20dd295479 (patch)
tree6ca9404727990f03f7cf6d3acbfc44458c1c75d0 /gr-uhd/lib/gr_uhd_usrp_source.cc
parent1f3014a355c3eb320e77d2875058edac2c7c86de (diff)
downloadgnuradio-f3d2a28dc8d1abfe42435a4b5040eb20dd295479.tar.gz
gnuradio-f3d2a28dc8d1abfe42435a4b5040eb20dd295479.tar.bz2
gnuradio-f3d2a28dc8d1abfe42435a4b5040eb20dd295479.zip
uhd: added get_samp_rates calls
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, 8 insertions, 0 deletions
diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc
index adb234f25..207e049d8 100644
--- a/gr-uhd/lib/gr_uhd_usrp_source.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_source.cc
@@ -80,6 +80,14 @@ public:
return _dev->get_rx_rate();
}
+ uhd::meta_range_t get_samp_rates(void){
+ #ifdef UHD_USRP_MULTI_USRP_GET_RATES_API
+ return _dev->get_rx_rates();
+ #else
+ throw std::runtime_error("not implemented in this version");
+ #endif
+ }
+
uhd::tune_result_t set_center_freq(
const uhd::tune_request_t tune_request, size_t chan
){