From 119934da2ea19337c564c4d3c5c7c31fc669c369 Mon Sep 17 00:00:00 2001 From: Martin Braun <martin.braun@ettus.com> Date: Mon, 20 Nov 2017 17:18:22 -0800 Subject: mg: Add stubs for LO locked sensors --- .../dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp') 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"); -- cgit v1.2.3