diff options
Diffstat (limited to 'host/lib/usrp/dboard/magnesium')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 2 | ||||
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp | 3 |
2 files changed, 5 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 e67d0b1fe..a8729af6a 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -100,6 +100,8 @@ UHD_RFNOC_RADIO_BLOCK_CONSTRUCTOR(magnesium_radio_ctrl) _master = _radio_slot == "A" or _radio_slot == "C"; UHD_LOG_DEBUG(unique_id(), "Radio type: " << (_master ? "master" : "slave")); + _rpc_prefix = + (_radio_slot == "A" or _radio_slot == "B") ? "db_0_" : "db_1_"; _init_defaults(); _init_peripherals(); 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 433ab9a94..91a7060d6 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp @@ -190,6 +190,9 @@ private: //! Letter representation of the radio we're currently running std::string _radio_slot; + //! Prepended for all dboard RPC calls + std::string _rpc_prefix; + //! If true, this is a master radio. This attribute will go away when we // move back to 1 radio block per dboard. bool _master; |