diff options
author | Josh Blum | 2010-10-25 16:22:05 -0700 |
---|---|---|
committer | Josh Blum | 2010-10-25 16:22:05 -0700 |
commit | 5a2de999da86d48cd7f005d08cc48965cb8c7a65 (patch) | |
tree | cc46fb2e2a024146133bb81308203a69bd603619 /gr-uhd/lib/uhd_multi_usrp_source.h | |
parent | df9a3f3bad0942fe0d6ec45dd02eec62544d02be (diff) | |
download | gnuradio-5a2de999da86d48cd7f005d08cc48965cb8c7a65.tar.gz gnuradio-5a2de999da86d48cd7f005d08cc48965cb8c7a65.tar.bz2 gnuradio-5a2de999da86d48cd7f005d08cc48965cb8c7a65.zip |
uhd: move tune functions to tune_request and provide wrapper for simple case
Diffstat (limited to 'gr-uhd/lib/uhd_multi_usrp_source.h')
-rw-r--r-- | gr-uhd/lib/uhd_multi_usrp_source.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gr-uhd/lib/uhd_multi_usrp_source.h b/gr-uhd/lib/uhd_multi_usrp_source.h index 081c82ee6..b3cbdae1f 100644 --- a/gr-uhd/lib/uhd_multi_usrp_source.h +++ b/gr-uhd/lib/uhd_multi_usrp_source.h @@ -64,11 +64,25 @@ public: /*! * Tune the usrp device to the desired center frequency. + * \param tune_request the tune request instructions + * \param chan the channel index 0 to N-1 + * \return a tune result with the actual frequencies + */ + virtual uhd::tune_result_t set_center_freq( + const uhd::tune_request_t tune_request, size_t chan + ) = 0; + + /*! + * Tune the usrp device to the desired center frequency. + * This is a wrapper around set center freq so that in this case, + * the user can pass a single frequency in the call through swig. * \param freq the desired frequency in Hz * \param chan the channel index 0 to N-1 * \return a tune result with the actual frequencies */ - virtual uhd::tune_result_t set_center_freq(double freq, size_t chan) = 0; + uhd::tune_result_t set_center_freq(double freq, size_t chan){ + return set_center_freq(uhd::tune_request_t(freq), chan); + } /*! * Get the tunable frequency range. |