Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

GattrReg Class Reference

Class which is instantiated for each register. More...

Inheritance diagram for GattrReg:

Inheritance graph
[legend]
Collaboration diagram for GattrReg:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __init__ (name, regno, size, flags=ATTR_READ_WRITE, rule=Gattr.defaultRule, constraint=Gattr.defaultConstraint, egu=Gattr.defaultEgu)
 set (node, val, attr, bypass=0)
 Method for setting the value of a register attribute.
 get (node, attr, bypass=0)
 Method for getting the value of a register attribute. Calls the functions in the node class for getting values.

Detailed Description

Class which is instantiated for each register.

Definition at line 166 of file gAttr.py.


Member Function Documentation

__init__ name  ,
regno  ,
size  ,
flags  = ATTR_READ_WRITE,
rule  = Gattr.defaultRule,
constraint  = Gattr.defaultConstraint,
egu  = Gattr.defaultEgu
 

GattrReg constructor

Parameters:
name The name of the register
regno Register no.
size Register size in bytes.
rule Optional. Register rule.
constraint Optional. Register constraint.
egu Optional. Register EGU

get node  ,
attr  ,
bypass  = 0
 

Method for getting the value of a register attribute. Calls the functions in the node class for getting values.

Parameters:
node Node this register belongs to
attr _Attr instance
bypass Optional. Flag for bypassing EGU conversion bypass=0 (the default), the value will be returned in EU. bypass=1, the raw value will be returned.
Returns:
Register value.

Reimplemented from Gattr.

Reimplemented in GattrRegDepr.

set node  ,
val  ,
attr  ,
bypass  = 0
 

Method for setting the value of a register attribute.

Calls the functions in the base class for setting values.

Parameters:
node Node this register belongs to
val Register value to be set
attr _Attr instance
bypass Optional. Flag for bypassing EGU conversion

Reimplemented in GattrRegDepr.


The documentation for this class was generated from the following file:
Generated on Fri Jul 21 13:26:46 2006 for LATTE R04-12-00 by doxygen 1.4.3