From 389d93f465b2114959aa86931d6b473634950e46 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 1 Dec 2010 10:53:32 -0500 Subject: uhd: default channel params to zero for single source and sink blocks --- gr-uhd/lib/uhd_single_usrp_source.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'gr-uhd/lib/uhd_single_usrp_source.cc') diff --git a/gr-uhd/lib/uhd_single_usrp_source.cc b/gr-uhd/lib/uhd_single_usrp_source.cc index c33c8c0b0..ac8cd07fc 100644 --- a/gr-uhd/lib/uhd_single_usrp_source.cc +++ b/gr-uhd/lib/uhd_single_usrp_source.cc @@ -69,40 +69,40 @@ public: } uhd::tune_result_t set_center_freq( - const uhd::tune_request_t tune_request, size_t chan + const uhd::tune_request_t tune_request, size_t chan = 0 ){ return _dev->set_rx_freq(tune_request, chan); } - uhd::freq_range_t get_freq_range(size_t chan){ + uhd::freq_range_t get_freq_range(size_t chan = 0){ return _dev->get_rx_freq_range(chan); } - void set_gain(float gain, size_t chan){ + void set_gain(float gain, size_t chan = 0){ return _dev->set_rx_gain(gain, chan); } - float get_gain(size_t chan){ + float get_gain(size_t chan = 0){ return _dev->get_rx_gain(chan); } - uhd::gain_range_t get_gain_range(size_t chan){ + uhd::gain_range_t get_gain_range(size_t chan = 0){ return _dev->get_rx_gain_range(chan); } - void set_antenna(const std::string &ant, size_t chan){ + void set_antenna(const std::string &ant, size_t chan = 0){ return _dev->set_rx_antenna(ant, chan); } - std::string get_antenna(size_t chan){ + std::string get_antenna(size_t chan = 0){ return _dev->get_rx_antenna(chan); } - std::vector get_antennas(size_t chan){ + std::vector get_antennas(size_t chan = 0){ return _dev->get_rx_antennas(chan); } - void set_bandwidth(double bandwidth, size_t chan){ + void set_bandwidth(double bandwidth, size_t chan = 0){ return _dev->set_rx_bandwidth(bandwidth, chan); } -- cgit