From d2ff40ed948382cb124bca625ffb5a0e0771c1d9 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sun, 5 Nov 2017 20:28:07 -0800 Subject: mg: Added stubs for LO controls --- .../dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 50 ++++++++++++++++++++++ .../dboard/magnesium/magnesium_radio_ctrl_impl.hpp | 27 ++++++++++++ 2 files changed, 77 insertions(+) (limited to 'host/lib/usrp/dboard/magnesium') 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 magnesium_radio_ctrl_impl::get_rx_lo_names( + const size_t chan +) { + return std::vector{}; +} + +std::vector magnesium_radio_ctrl_impl::get_rx_lo_sources( + const std::string &name, + const size_t chan +) { + return std::vector{}; +} + +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 get_rx_lo_names(const size_t chan); + std::vector 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); -- cgit v1.2.3