Main Page | Namespace List | 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, bypass=0)
 get (node, bypass=0)

Detailed Description

Class which is instantiated for each register.

Definition at line 156 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  ,
bypass  = 0
 

Method for getting the value of a register attribute. Calls the functions in the node class for getting values. If bypass=0 (the default), the value will be returned in EU. If bypass=1, the raw value will be returned.

Reimplemented from Gattr.

set node  ,
val  ,
bypass  = 0
 

Method for setting the value of a register attribute. Calls the functions in the base class for setting values.

Parameters:
val Register value to be set
bypass Optional. Flag for bypassing EGU conversion

Reimplemented from Gattr.


The documentation for this class was generated from the following file:
Generated on Fri Jan 21 18:01:00 2005 for LATTE P04-06-05 by doxygen 1.4.1