aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/dboard/magnesium')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp50
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp27
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);