summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/gr_uhd_usrp_source.cc
diff options
context:
space:
mode:
authorJosh Blum2013-04-12 17:37:26 -0700
committerJosh Blum2013-06-25 14:13:50 -0700
commit4a2a578800fe18136615e51c6f1a8c072b5dd71e (patch)
tree25fa08c3bd3261354429b458c8c8464c02abc2a9 /gr-uhd/lib/gr_uhd_usrp_source.cc
parenta88769e6f5ec9d6d3739d0b56dd9185c9c54009b (diff)
downloadgnuradio-4a2a578800fe18136615e51c6f1a8c072b5dd71e.tar.gz
gnuradio-4a2a578800fe18136615e51c6f1a8c072b5dd71e.tar.bz2
gnuradio-4a2a578800fe18136615e51c6f1a8c072b5dd71e.zip
uhd: added getters for bandwidth setting and range
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 3813673b4..c6c82d56c 100644
--- a/gr-uhd/lib/gr_uhd_usrp_source.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_source.cc
@@ -168,6 +168,14 @@ public:
return _dev->set_rx_bandwidth(bandwidth, chan);
}
+ double get_bandwidth(size_t chan){
+ return _dev->get_rx_bandwidth(chan);
+ }
+
+ uhd::freq_range_t get_bandwidth_range(size_t chan){
+ return _dev->get_rx_bandwidth_range(chan);
+ }
+
void set_auto_dc_offset(const bool enable, size_t chan){
#ifdef UHD_USRP_MULTI_USRP_FRONTEND_CAL_API
return _dev->set_rx_dc_offset(enable, chan);