![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Single hardware register inside a Register_block_base interface. More...
#include <hw_register_block>
Public Member Functions | |
| Register_tmpl & | operator= (value_type val) |
| write val into the hardware register. | |
| void | write (value_type val) |
| write val into the hardware register. | |
| value_type | set (value_type set_bits) |
| set bits in set_bits in the hardware register. | |
| value_type | clear (value_type clear_bits) |
| clears bits in clear_bits in the hardware register. | |
| value_type | modify (value_type clear_bits, value_type set_bits) |
| clears bits in clear_bits and sets bits in set_bits in the hardware register. | |
| Public Member Functions inherited from L4drivers::Ro_register_tmpl< BITS, BLOCK > | |
| operator value_type () const | |
| read the value from the hardware register. | |
| value_type | read () const |
| read the value from the hardware register. | |
Single hardware register inside a Register_block_base interface.
| BITS | The access width for the register in bits. |
| BLOCK | the type of the Register_block_base interface. |
Definition at line 237 of file hw_register_block.
|
inline |
clears bits in clear_bits in the hardware register.
| clear_bits | bits to be cleared within the hardware register. |
This is a read-modify-write function that does a logical and of the old value from the register with the negated value of clear_bits.
Definition at line 290 of file hw_register_block.
Referenced by L4drivers::Register_tmpl< MAX_BITS, Block >::clear().
|
inline |
clears bits in clear_bits and sets bits in set_bits in the hardware register.
| clear_bits | bits to be cleared within the hardware register. |
| set_bits | bits to set in the hardware register. |
This is a read-modify-write function that first does a logical and of the old value from the register with the negated value of clear_bits and then does a logical or with set_bits.
Definition at line 308 of file hw_register_block.
Referenced by L4drivers::Register_tmpl< MAX_BITS, Block >::modify().
|
inline |
write val into the hardware register.
| val | the value to write into the hardware register. |
Definition at line 252 of file hw_register_block.
|
inline |
set bits in set_bits in the hardware register.
| set_bits | bits to be set within the hardware register. |
This is a read-modify-write function that does a logical or of the old value from the register with set_bits.
Definition at line 274 of file hw_register_block.
Referenced by L4drivers::Register_tmpl< MAX_BITS, Block >::set().
|
inline |
write val into the hardware register.
| val | the value to write into the hardware register. |
Definition at line 259 of file hw_register_block.
Referenced by L4drivers::Register_tmpl< MAX_BITS, Block >::operator=(), and L4drivers::Register_tmpl< MAX_BITS, Block >::write().