diff options
author | Mark Meserve <mark.meserve@ni.com> | 2017-08-09 15:17:44 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:04:00 -0800 |
commit | 309a2f04e3da6667bc44c78121064b2d03e24e75 (patch) | |
tree | 08b453917053ac0a445ee261c694a706d9f5e180 /mpm/python | |
parent | 8ee3da3ef9b812eda2ac3269927191e09916dc3c (diff) | |
download | uhd-309a2f04e3da6667bc44c78121064b2d03e24e75.tar.gz uhd-309a2f04e3da6667bc44c78121064b2d03e24e75.tar.bz2 uhd-309a2f04e3da6667bc44c78121064b2d03e24e75.zip |
mg: General fixes
- Make DB probe-able
- Add RPC client
Diffstat (limited to 'mpm/python')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/magnesium.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py index b779607c8..536503b62 100644 --- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py +++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py @@ -64,8 +64,9 @@ class Magnesium(DboardManagerBase): spi_chipselect = {"lmk": 0, "mykonos": 1} def __init__(self, slot_idx, **kwargs): - super(Magnesium, self).__init__(*args, **kwargs) - self.log = get_logger("Magnesium") + super(Magnesium, self).__init__(slot_idx, **kwargs) + self.log = get_logger("Magnesium-{}".format(slot_idx)) + self.log.trace("Initializing Magnesium daughterboard, slot index {}".format(self.slot_idx)) def init(self, args): """ @@ -88,6 +89,7 @@ class Magnesium(DboardManagerBase): self.radio_regs = UIO(label="jesd204b-regs", read_only=False) self.log.info("Radio-register UIO object successfully generated!") self.init_jesd(self.radio_regs) + return True def init_jesd(self, uio): """ @@ -117,14 +119,14 @@ class Magnesium(DboardManagerBase): self.mykonos.finish_initialization() self.log.trace("Starting Mykonos framer...") - self.mykonos.start_jesd_rx() + self.mykonos.start_jesd_tx() self.jesdcore.send_sysref_pulse() self.log.trace("Resetting FPGA deframer...") self.jesdcore.init_deframer() self.log.trace("Resetting FPGA framer...") self.jesdcore.init_framer() self.log.trace("Starting Mykonos deframer...") - self.mykonos.start_jesd_tx() + self.mykonos.start_jesd_rx() self.log.trace("Enable LMFC and send") self.jesdcore.enable_lmfc() |