![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Handles a reference to a register block of the given maximum access width. More...
#include <hw_register_block>
Public Member Functions | |
| template<unsigned BITS> | |
| Ro_register_tmpl< BITS, Block > | r (unsigned offset) const |
| Read only access to register at offset offset. | |
| Ro_register | operator[] (unsigned offset) const |
| Read only access to register at offset offset. | |
| template<unsigned BITS> | |
| Register_tmpl< BITS, Block > | r (unsigned offset) |
| Read/write access to register at offset offset. | |
| Register | operator[] (unsigned offset) |
| Read/write access to register at offset offset. | |
Handles a reference to a register block of the given maximum access width.
Register block.
| MAX_BITS | Maximum access width for the registers in this block. |
| BLOCK | Type implementing the register accesses (read<>(), write<>(), modify<>(), set<>(), and clear<>()). |
Provides access to registers in this block via r<WIDTH>() and operator[]().
Example usage:
Definition at line 330 of file hw_register_block.
|
inline |
Read/write access to register at offset offset.
| offset | The offset of the register within the register file. |
Definition at line 385 of file hw_register_block.
References r().
|
inline |
Read only access to register at offset offset.
| offset | The offset of the register within the register file. |
Definition at line 365 of file hw_register_block.
References r().
|
inline |
Read/write access to register at offset offset.
| BITS | the access width in bits for the register. |
| offset | The offset of the register within the register file. |
Definition at line 376 of file hw_register_block.
|
inline |
Read only access to register at offset offset.
| BITS | the access width in bits for the register. |
| offset | The offset of the register within the register file. |
Definition at line 357 of file hw_register_block.
Referenced by operator[](), and operator[]().