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, bypass=0) |
| | get (node, 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 213 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 |
, |
|
|
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 |
, |
|
|
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 |
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
1.4.1