diff options
author | Josh Blum | 2010-10-19 15:46:27 -0700 |
---|---|---|
committer | Josh Blum | 2010-10-19 15:46:27 -0700 |
commit | f13e1e1a87cf3d8b891e94226be047cff3733bb7 (patch) | |
tree | 10b39f0b6acd22a75f37ce4a995e8f4eee7dc76d /gr-uhd/lib/uhd_multi_usrp_source.h | |
parent | c6e4a54769e2d5be3cfd28df6697c54c4a4a7e90 (diff) | |
download | gnuradio-f13e1e1a87cf3d8b891e94226be047cff3733bb7.tar.gz gnuradio-f13e1e1a87cf3d8b891e94226be047cff3733bb7.tar.bz2 gnuradio-f13e1e1a87cf3d8b891e94226be047cff3733bb7.zip |
uhd: implement set bandwidth for uhd blocks, remove chan=0 default for multi blocks
Diffstat (limited to 'gr-uhd/lib/uhd_multi_usrp_source.h')
-rw-r--r-- | gr-uhd/lib/uhd_multi_usrp_source.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/gr-uhd/lib/uhd_multi_usrp_source.h b/gr-uhd/lib/uhd_multi_usrp_source.h index 36c4b6fdc..483ce098c 100644 --- a/gr-uhd/lib/uhd_multi_usrp_source.h +++ b/gr-uhd/lib/uhd_multi_usrp_source.h @@ -66,49 +66,55 @@ public: * \param freq the desired frequency in Hz * \return a tune result with the actual frequencies */ - virtual uhd::tune_result_t set_center_freq(double freq, size_t chan = 0) = 0; + virtual uhd::tune_result_t set_center_freq(double freq, size_t chan) = 0; /*! * Get the tunable frequency range. * \return the frequency range in Hz */ - virtual uhd::freq_range_t get_freq_range(size_t chan = 0) = 0; + virtual uhd::freq_range_t get_freq_range(size_t chan) = 0; /*! * Set the gain for the dboard. * \param gain the gain in dB */ - virtual void set_gain(float gain, size_t chan = 0) = 0; + virtual void set_gain(float gain, size_t chan) = 0; /*! * Get the actual dboard gain setting. * \return the actual gain in dB */ - virtual float get_gain(size_t chan = 0) = 0; + virtual float get_gain(size_t chan) = 0; /*! * Get the settable gain range. * \return the gain range in dB */ - virtual uhd::gain_range_t get_gain_range(size_t chan = 0) = 0; + virtual uhd::gain_range_t get_gain_range(size_t chan) = 0; /*! * Set the antenna to use. * \param ant the antenna string */ - virtual void set_antenna(const std::string &ant, size_t chan = 0) = 0; + virtual void set_antenna(const std::string &ant, size_t chan) = 0; /*! * Get the antenna in use. * \return the antenna string */ - virtual std::string get_antenna(size_t chan = 0) = 0; + virtual std::string get_antenna(size_t chan) = 0; /*! * Get a list of possible antennas. * \return a vector of antenna strings */ - virtual std::vector<std::string> get_antennas(size_t chan = 0) = 0; + virtual std::vector<std::string> get_antennas(size_t chan) = 0; + + /*! + * Set the subdevice bandpass filter. + * \param bandwidth the filter bandwidth in Hz + */ + virtual void set_bandwidth(double bandwidth, size_t chan) = 0; /*! * Set the clock configuration. |