diff options
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.hpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.hpp b/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.hpp index 27341673c..39c3f74c2 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.hpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.hpp @@ -15,6 +15,17 @@ #include <memory> #include <mutex> +//! Structs for interfacing with the cpld register state +// TODO: add structs and supporting function calls for other parts of the +// magnesium cpld reg interface +struct tx_atr_bits_t +{ + bool tx_led = false; + bool tx_pa_en = false; + bool tx_amp_en = false; + bool tx_myk_en = false; +}; + //! Controls the CPLD on a Magnesium daughterboard // // Setters are thread-safe through lock guards. This lets a CPLD control object @@ -215,6 +226,13 @@ public: const bool tx_myk_enb, const bool defer_commit = false); + void set_tx_atr_bits(const chan_sel_t chan, + const atr_state_t atr_state, + const tx_atr_bits_t atr_bits, + const bool defer_commit = false); + + tx_atr_bits_t get_tx_atr_bits(const chan_sel_t chan, const atr_state_t atr_state); + /*! ATR settings: TRX switch * * Note: This ATR state is frequency dependent. |