diff options
author | Mark Meserve <mark.meserve@ni.com> | 2018-09-25 17:33:23 -0500 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2018-12-12 16:27:25 -0800 |
commit | 75ee8e0314b7149ae4ef57e15b15c6bdfa3ac099 (patch) | |
tree | 9bcc2e310a6a6805f247e5b3d1f982ddfb85c1eb | |
parent | 89e3c67c783a675aeaaf23b8a4a88266d1a426d6 (diff) | |
download | uhd-75ee8e0314b7149ae4ef57e15b15c6bdfa3ac099.tar.gz uhd-75ee8e0314b7149ae4ef57e15b15c6bdfa3ac099.tar.bz2 uhd-75ee8e0314b7149ae4ef57e15b15c6bdfa3ac099.zip |
rh: add functions to toggle lowband lo
-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); ########################################################################## |