diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-05 20:28:07 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:05 -0800 |
commit | d2ff40ed948382cb124bca625ffb5a0e0771c1d9 (patch) | |
tree | ef90d1041e085220ab771cecb8e315e56b197d84 /host | |
parent | b5f6ba518e80fe3f3f64f112d657bc9fc631fe4f (diff) | |
download | uhd-d2ff40ed948382cb124bca625ffb5a0e0771c1d9.tar.gz uhd-d2ff40ed948382cb124bca625ffb5a0e0771c1d9.tar.bz2 uhd-d2ff40ed948382cb124bca625ffb5a0e0771c1d9.zip |
mg: Added stubs for LO controls
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 50 | ||||
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp | 27 |
2 files changed, 77 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp index b0157bdef..a6841b4b9 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -256,6 +256,56 @@ double magnesium_radio_ctrl_impl::set_rx_gain( return _set_all_gain(gain, chan, RX_DIRECTION); } +std::vector<std::string> magnesium_radio_ctrl_impl::get_rx_lo_names( + const size_t chan +) { + return std::vector<std::string>{}; +} + +std::vector<std::string> magnesium_radio_ctrl_impl::get_rx_lo_sources( + const std::string &name, + const size_t chan +) { + return std::vector<std::string>{}; +} + +freq_range_t magnesium_radio_ctrl_impl::get_rx_lo_freq_range( + const std::string &name, + const size_t chan +) { + return freq_range_t{}; +} + +void magnesium_radio_ctrl_impl::set_rx_lo_source( + const std::string &src, + const std::string &name, + const size_t chan +) { + // FIXME +} + +const std::string magnesium_radio_ctrl_impl::get_rx_lo_source( + const std::string &name, + const size_t chan +) { + return ""; // FIXME +} + +double magnesium_radio_ctrl_impl::set_rx_lo_freq( + double freq, + const std::string &name, + const size_t chan +) { + return 0.0; // FIXME +} + +double magnesium_radio_ctrl_impl::get_rx_lo_freq( + const std::string &name, + const size_t chan +) { + return 0.0; // FIXME +} + size_t magnesium_radio_ctrl_impl::get_chan_from_dboard_fe( const std::string &fe, const direction_t /* dir */ ) { diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp index cf9ba765d..75a91d0b4 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp @@ -60,6 +60,33 @@ public: double set_tx_bandwidth(const double bandwidth, const size_t chan); double set_rx_bandwidth(const double bandwidth, const size_t chan); + std::vector<std::string> get_rx_lo_names(const size_t chan); + std::vector<std::string> get_rx_lo_sources( + const std::string &name, + const size_t chan + ); + freq_range_t get_rx_lo_freq_range( + const std::string &name, + const size_t chan + ); + + void set_rx_lo_source( + const std::string &src, + const std::string &name, + const size_t chan + ); + const std::string get_rx_lo_source( + const std::string &name, + const size_t chan + ); + + double set_rx_lo_freq( + double freq, + const std::string &name, + const size_t chan + ); + double get_rx_lo_freq(const std::string &name, const size_t chan); + double set_tx_gain(const double gain, const size_t chan); double set_rx_gain(const double gain, const size_t chan); |