diff options
Diffstat (limited to 'host/lib/usrp/multi_usrp_rfnoc.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp_rfnoc.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp_rfnoc.cpp b/host/lib/usrp/multi_usrp_rfnoc.cpp index aa28c6784..8b85e84ec 100644 --- a/host/lib/usrp/multi_usrp_rfnoc.cpp +++ b/host/lib/usrp/multi_usrp_rfnoc.cpp @@ -453,6 +453,12 @@ public: usrp_info["rx_id"] = db_eeprom.count("rx_id") ? bytes_to_str(db_eeprom.at("rx_id")) : ""; + const auto rx_power_ref_keys = rx_chain.radio->get_rx_power_ref_keys(); + if (!rx_power_ref_keys.empty() && rx_power_ref_keys.size() == 2) { + usrp_info["rx_ref_power_key"] = rx_power_ref_keys.at(0); + usrp_info["rx_ref_power_serial"] = rx_power_ref_keys.at(1); + } + return usrp_info; } @@ -477,6 +483,12 @@ public: usrp_info["tx_id"] = db_eeprom.count("tx_id") ? bytes_to_str(db_eeprom.at("tx_id")) : ""; + const auto tx_power_ref_keys = tx_chain.radio->get_tx_power_ref_keys(); + if (!tx_power_ref_keys.empty() && tx_power_ref_keys.size() == 2) { + usrp_info["tx_ref_power_key"] = tx_power_ref_keys.at(0); + usrp_info["tx_ref_power_serial"] = tx_power_ref_keys.at(1); + } + return usrp_info; } |