diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-05-19 13:44:21 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-05-19 13:44:21 -0700 |
commit | adac03ceb88dc9d11f9bc29afbbd49c4981c48ea (patch) | |
tree | 5456d7771a87c9d4cca6aad13c11119bff97d929 /host/lib/usrp/common/ad9361_driver/ad9361_device.h | |
parent | c4f8e2cd5e4b1457a979a2555fd9725837d6b430 (diff) | |
download | uhd-adac03ceb88dc9d11f9bc29afbbd49c4981c48ea.tar.gz uhd-adac03ceb88dc9d11f9bc29afbbd49c4981c48ea.tar.bz2 uhd-adac03ceb88dc9d11f9bc29afbbd49c4981c48ea.zip |
ad9361: Minor clarifications on req_rate and baseband_bw
Diffstat (limited to 'host/lib/usrp/common/ad9361_driver/ad9361_device.h')
-rw-r--r-- | host/lib/usrp/common/ad9361_driver/ad9361_device.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.h b/host/lib/usrp/common/ad9361_driver/ad9361_device.h index bd4ad368f..a42c5ac9a 100644 --- a/host/lib/usrp/common/ad9361_driver/ad9361_device.h +++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.h @@ -112,8 +112,15 @@ private: //Members ad9361_io::sptr _io_iface; //Intermediate state double _rx_freq, _tx_freq, _req_rx_freq, _req_tx_freq; - double _baseband_bw, _bbpll_freq, _adcclock_freq; - double _req_clock_rate, _req_coreclk; + //! Current baseband sampling rate (this is the actual rate the device is + // is running at) + double _baseband_bw; + double _bbpll_freq, _adcclock_freq; + //! This was the last clock rate value that was requested. + // It is cached so we don't need to re-set the clock rate + // if another call to set_clock_rate() actually has the same value. + double _req_clock_rate; + double _req_coreclk; boost::uint16_t _rx_bbf_tunediv; boost::uint8_t _curr_gain_table; double _rx1_gain, _rx2_gain, _tx1_gain, _tx2_gain; |