diff options
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 20 |
1 files changed, 20 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 0e3768499..e67d0b1fe 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -409,6 +409,26 @@ void magnesium_radio_ctrl_impl::set_rpc_client( ); }) ; + + // Sensors + for (const auto &dir : std::vector<direction_t>{RX_DIRECTION, TX_DIRECTION}) { + for (size_t chan_idx = 0; chan_idx < 1 /* num channels FIXME */; chan_idx++) { + const fs_path fe_path = + fs_path("dboards") / + _radio_slot / + (dir == RX_DIRECTION ? "rx_frontends" : "tx_frontends") / + chan_idx; + UHD_LOG_TRACE(unique_id(), + "Stubbed out adding sensors for fe path " << fe_path); + // FIXME add sensors here + } + } +} + +bool magnesium_radio_ctrl_impl::get_lo_lock_status( + const direction_t /*dir*/ +) { + return bool(_rpcc); // FIXME } UHD_RFNOC_BLOCK_REGISTER(magnesium_radio_ctrl, "MagnesiumRadio"); |