Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The <foo> package contains a simple interface to an in-memory model of the LATC register space.  A top level object, LATC_LAT, is provided which constitutes the top level interface to the LATC register hierarchy.   This package contains several base classes: LATCComponent, LATCComponentDict, LATCRegister. The top level object is instantiated with a simple:

Code Block

lat = LATC_LAT()

LATCComponent

The base class of all LATC component objects (such as LATC_LAT, LATC_TEM, LATC_AFE).   LATCComponent objects have sets of LATCComponents and sets of LATCRegisters.   These sets may be empty.   All LATCComponent objects define the following methods:

Code Block

name()    Returns the component's name (a string)
components()    Returns a dict of LATCComponent objects that are under this component (may be empty). Example: lat.components().keys() returns ['AEM', 'TEM', 'GEM'
nComponents()   Returns the length of the components() dict
registers()    Returns  a dict of LATCRegister objects

Code Block

 

LATCComponentDict

...