|
Zth (libzth)
|
Helper class to read/write (bitfields in) hardware registers. More...
#include <regs.h>
Public Types | |
| typedef T | type |
Public Member Functions | |
| Register () noexcept | |
| constexpr | Register (type v) noexcept |
| type | read () const noexcept |
| type | read () noexcept |
| void | write () const noexcept |
| void | write (type v) const noexcept |
| void | write (type v) noexcept |
| operator type () const noexcept | |
Static Public Member Functions | |
| static type volatile * | r () noexcept |
Public Attributes | |
| union { | |
| type value | |
| Fields field | |
| }; | |
Helper class to read/write (bitfields in) hardware registers.
Registers are assumed to be volatile. Only explicit read() and write() access the actual register. All other operations are performed on the locally cached value.
| typedef T zth::Register< T, Addr, Fields >::type |
|
inlinenoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| union { ... } |
| Fields zth::Register< T, Addr, Fields >::field |
| type zth::Register< T, Addr, Fields >::value |