aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager/rh_periphs.py
diff options
context:
space:
mode:
authorMark Meserve <mark.meserve@ni.com>2018-12-21 15:52:13 -0600
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-10 09:50:16 -0800
commitec0b4dd1274c2d1d3fd392561f90e0186732cd52 (patch)
tree79e77dae3a7529e642197f82bbedfbd4862adc28 /mpm/python/usrp_mpm/dboard_manager/rh_periphs.py
parenta476cba5f5cc753c90749d1573ae286286a89c98 (diff)
downloaduhd-ec0b4dd1274c2d1d3fd392561f90e0186732cd52.tar.gz
uhd-ec0b4dd1274c2d1d3fd392561f90e0186732cd52.tar.bz2
uhd-ec0b4dd1274c2d1d3fd392561f90e0186732cd52.zip
rh: general code cleanup
- Add default bandwidth range - Add default mash order constant - Delete MPM todos - Cleanup whitespace in MPM python code - Add docstring for is_lo_dist_present
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/rh_periphs.py')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/rh_periphs.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/rh_periphs.py b/mpm/python/usrp_mpm/dboard_manager/rh_periphs.py
index 2d631e509..7df734f06 100644
--- a/mpm/python/usrp_mpm/dboard_manager/rh_periphs.py
+++ b/mpm/python/usrp_mpm/dboard_manager/rh_periphs.py
@@ -91,8 +91,8 @@ class FPGAtoLoDist(object):
raise RuntimeError('LO distribution board revision did not match: Expected: {0} Actual: {1}'.format(self.EXPECTED_BOARD_REV, board_rev))
self._gpios.set(self.pins.index('P6_8V_EN'), 1)
if not poll_with_timeout(
- lambda: bool(self._gpios.get(self.pins.index('P6_8V_PG'))),
- self.POWER_ON_TIMEOUT,
+ lambda: bool(self._gpios.get(self.pins.index('P6_8V_PG'))),
+ self.POWER_ON_TIMEOUT,
self.POWER_ON_POLL_INTERVAL):
self._gpios.set(self.pins.index('P6_8V_EN'), 0)
raise RuntimeError('Power on failure for LO Distribution board')
@@ -201,8 +201,6 @@ class RhCPLD(object):
"""
return (self.peek16(self.REG_DAC_ALARM) & 0x0001)
- # TODO: add more control/status functionality to this class?
-
class DboardClockControl(object):
"""