...
The base class of all LATC component objects (such as LATC_LAT, LATC_TEM, LATC_AFE). LATCComponent objects have contain 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 (may be empty). |
...
Example: lat.components()['AEM'].registers().keys() returns:
['trgseq', 'aem_configuration']
addComponent(name, component) Adds a component to the object.
+Not normally used by the user.+
addRegister(name, register) Adds a register to the object.
+Not normally used by the user.+
|
There also exists a more intuitive interface for LATCComponents. The user can reference the components and registers of a component by name. For example, the following two code snippets are equivalent:
Code Block |
---|
aem1 = lat.components()['AEM']
aem2 = lat.AEM
|
Code Block |
---|
trgseq1 = lat.AEM.registers()['trgseq']
trgseq2 = lat.AEM.trgseq
|
LATCComponentDict
LATCRegister
...