diff options
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/lmk_rh.py | 6 | ||||
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/rhodium.py | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py b/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py index 8e9dec67e..240948fe5 100644 --- a/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py +++ b/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py @@ -314,3 +314,9 @@ class LMK04828Rh(LMK04828): # Put everything back the way it was before shifting. self.poke8(0x144, 0xFF) # Disable SYNC on all outputs including SYSREF self.poke8(0x143, 0x52) # Pulser selected; SYNC enabled; 1 shot enabled + + def enable_tx_lb_lo(self, enb): + self.poke8(0x11F, 0x05 if enb else 0x00) + + def enable_rx_lb_lo(self, enb): + self.poke8(0x12F, 0x85 if enb else 0x80) diff --git a/mpm/python/usrp_mpm/dboard_manager/rhodium.py b/mpm/python/usrp_mpm/dboard_manager/rhodium.py index 88db243fa..8b4bf373b 100644 --- a/mpm/python/usrp_mpm/dboard_manager/rhodium.py +++ b/mpm/python/usrp_mpm/dboard_manager/rhodium.py @@ -560,6 +560,20 @@ class Rhodium(DboardManagerBase): self.log.info("Re-initializing daughter board. This may take some time.") self._reinit(self.master_clock_rate) self.log.debug("Daughter board re-initialization done.") + + def enable_tx_lowband_lo(self, enable): + """ + Enables or disables the TX lowband LO output from the LMK on the + daughterboard. + """ + self.lmk.enable_tx_lb_lo(enable); + + def enable_rx_lowband_lo(self, enable): + """ + Enables or disables the RX lowband LO output from the LMK on the + daughterboard. + """ + self.lmk.enable_rx_lb_lo(enable); ########################################################################## |