From f3d2a28dc8d1abfe42435a4b5040eb20dd295479 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 16 Oct 2011 11:49:11 -0700 Subject: uhd: added get_samp_rates calls --- gr-uhd/lib/gr_uhd_usrp_source.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gr-uhd/lib/gr_uhd_usrp_source.cc') 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 ){ -- cgit