GattrBF Class Reference
Bit field class which is instantiated for each bit field kind.
More...
Inheritance diagram for GattrBF:
[legend]Collaboration diagram for GattrBF:
[legend]List of all members.
|
Public Member Functions |
| __init__ (name, regno, start, end, flags=ATTR_READ_WRITE) |
| set (node, val, attr, bypass=0) |
| get (node, attr, bypass=0) |
Detailed Description
Bit field class which is instantiated for each bit field kind.
This class allows operation on bit fields of the form (end, start] in a register specified by the register number (regno).
N.B. This attribute operates on the raw value of the associated register
Definition at line 253 of file gAttr.py.
Member Function Documentation
__init__ |
( |
name |
, |
|
|
regno |
, |
|
|
start |
, |
|
|
end |
, |
|
|
flags |
= ATTR_READ_WRITE |
|
) |
|
|
|
GattrBF constructor
- Parameters:
-
| name | The name of the bit field |
| regno | Register no. containing the bit field |
| start | Bit offset to start (inclusive) of the bit field |
| end | Bit offset to the end (exclusive) of the bit field |
| flags | Optional flags to govern access to the bit field |
|
get |
( |
node |
, |
|
|
attr |
, |
|
|
bypass |
= 0 |
|
) |
|
|
|
Method for getting the value of a bit field.
- Parameters:
-
| val | bit field value to be set |
| bypass | ignored |
Reimplemented from Gattr. |
set |
( |
node |
, |
|
|
val |
, |
|
|
attr |
, |
|
|
bypass |
= 0 |
|
) |
|
|
|
Method for setting the value of a bit field. Calls the functions in the base class for setting values.
- Parameters:
-
| val | bit field value to be set |
| bypass | ignored |
|
The documentation for this class was generated from the following file:
Generated on Fri Jul 21 13:26:47 2006 for LATTE R04-12-00 by
1.4.3