diff options
| author | Martin Braun <martin.braun@ettus.com> | 2017-05-10 12:07:14 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:53 -0800 | 
| commit | 4efea95324b66477f877d65c2d9c6ce188850174 (patch) | |
| tree | 5bd27de40dab19895445e8be0ed52cc601b237c4 /mpm/python/usrp_mpm/dboard_manager/base.py | |
| parent | 2270a6b1a670bfa8387004bafdfcf2e74fc90477 (diff) | |
| download | uhd-4efea95324b66477f877d65c2d9c6ce188850174.tar.gz uhd-4efea95324b66477f877d65c2d9c6ce188850174.tar.bz2 uhd-4efea95324b66477f877d65c2d9c6ce188850174.zip | |
mpm: Enabled mboard EEPROM readout
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/base.py')
| -rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/base.py | 17 | 
1 files changed, 11 insertions, 6 deletions
| diff --git a/mpm/python/usrp_mpm/dboard_manager/base.py b/mpm/python/usrp_mpm/dboard_manager/base.py index 13284f6d3..985c20484 100644 --- a/mpm/python/usrp_mpm/dboard_manager/base.py +++ b/mpm/python/usrp_mpm/dboard_manager/base.py @@ -22,15 +22,20 @@ from ..mpmlog import get_logger  class DboardManagerBase(object):      """ -    Holds shared pointer to wrapped C++ implementation. -    Sanitizes arguments before calling C++ functions. -    Ties various constants to specific daughterboard class +    Base class for daughterboard controls      """ -    _eeprom = {} +    ######################################################################### +    # Overridables +    # +    # These values are meant to be overridden by the according subclasses +    ######################################################################### +    # Very important: A list of PIDs that apply to the current device. Must be +    # list, even if there's only one entry. +    pids = [] -    def __init__(self, eeprom=None): -        self._eeprom = eeprom or {} +    def __init__(self, slot_idx, **kwargs):          self.log = get_logger('dboardManager') +        self.slot_idx = slot_idx      def get_serial(self):          return self._eeprom.get("serial", "") | 
