diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-20 17:18:22 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:06 -0800 |
commit | 119934da2ea19337c564c4d3c5c7c31fc669c369 (patch) | |
tree | 1d3782b73bf422a31b655348c87022da1c5170ff /host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | |
parent | ba6e9e801cb45b060c4d33351dd6aed1a7cf08c8 (diff) | |
download | uhd-119934da2ea19337c564c4d3c5c7c31fc669c369.tar.gz uhd-119934da2ea19337c564c4d3c5c7c31fc669c369.tar.bz2 uhd-119934da2ea19337c564c4d3c5c7c31fc669c369.zip |
mg: Add stubs for LO locked sensors
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"); |