diff options
author | ejk <ejkreinar@gmail.com> | 2016-12-28 12:11:07 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-02-27 16:30:50 -0800 |
commit | 79a797d5b376fbfa51ffcd42d57956e83b4903c9 (patch) | |
tree | 0e7a1ce8e36cd4af38aafc6a7360a8214c21c79d /host/lib/rfnoc | |
parent | 0802747072b3b8506f992141deb40af0f9df0b81 (diff) | |
download | uhd-79a797d5b376fbfa51ffcd42d57956e83b4903c9.tar.gz uhd-79a797d5b376fbfa51ffcd42d57956e83b4903c9.tar.bz2 uhd-79a797d5b376fbfa51ffcd42d57956e83b4903c9.zip |
Rfnoc: Exposed analog lowpass bandwidth option in X300 ctrls
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/radio_ctrl_impl.cpp | 10 | ||||
-rw-r--r-- | host/lib/rfnoc/radio_ctrl_impl.hpp | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/host/lib/rfnoc/radio_ctrl_impl.cpp b/host/lib/rfnoc/radio_ctrl_impl.cpp index 0dc5cd168..262f1eb73 100644 --- a/host/lib/rfnoc/radio_ctrl_impl.cpp +++ b/host/lib/rfnoc/radio_ctrl_impl.cpp @@ -193,6 +193,11 @@ double radio_ctrl_impl::set_rx_gain(const double gain, const size_t chan) return _rx_gain[chan] = gain; } +double radio_ctrl_impl::set_rx_bandwidth(const double bandwidth, const size_t chan) +{ + return _rx_bandwidth[chan] = bandwidth; +} + void radio_ctrl_impl::set_time_sync(const uhd::time_spec_t &time) { _time64->set_time_sync(time); @@ -233,6 +238,11 @@ double radio_ctrl_impl::get_rx_gain(const size_t chan) /* const */ return _rx_gain[chan]; } +double radio_ctrl_impl::get_rx_bandwidth(const size_t chan) /* const */ +{ + return _rx_bandwidth[chan]; +} + /*********************************************************************** * RX Streamer-related methods (from source_block_ctrl_base) **********************************************************************/ diff --git a/host/lib/rfnoc/radio_ctrl_impl.hpp b/host/lib/rfnoc/radio_ctrl_impl.hpp index d6b402120..4946827d7 100644 --- a/host/lib/rfnoc/radio_ctrl_impl.hpp +++ b/host/lib/rfnoc/radio_ctrl_impl.hpp @@ -60,6 +60,7 @@ public: virtual double set_rx_frequency(const double freq, const size_t chan); virtual double set_tx_gain(const double gain, const size_t chan); virtual double set_rx_gain(const double gain, const size_t chan); + virtual double set_rx_bandwidth(const double bandwidth, const size_t chan); virtual double get_rate() const; virtual std::string get_tx_antenna(const size_t chan) /* const */; @@ -68,6 +69,7 @@ public: virtual double get_rx_frequency(const size_t) /* const */; virtual double get_tx_gain(const size_t) /* const */; virtual double get_rx_gain(const size_t) /* const */; + virtual double get_rx_bandwidth(const size_t) /* const */; void set_time_now(const time_spec_t &time_spec); void set_time_next_pps(const time_spec_t &time_spec); @@ -199,6 +201,7 @@ private: std::map<size_t, double> _rx_freq; std::map<size_t, double> _tx_gain; std::map<size_t, double> _rx_gain; + std::map<size_t, double> _rx_bandwidth; std::vector<bool> _continuous_streaming; }; /* class radio_ctrl_impl */ |