MMIO Register abstraction. Gives access to bitfields within the register as well as a reference to the register value itself.
More...
#include <registers.hpp>
|
template<u8 From, u8 To> |
using | Field = BitField< BaseAddress+static_cast< addr_t >(Offset), SizeType, From, To > |
| Bitfield access. More...
|
|
|
static auto & | Value = *reinterpret_cast<IO<SizeType>*>(BaseAddress + static_cast<addr_t>(Offset)) |
| Reference to the register value. More...
|
|
template<addr_t BaseAddress, auto Offset, typename SizeType = reg_t>
struct bsp::Register< BaseAddress, Offset, SizeType >
MMIO Register abstraction. Gives access to bitfields within the register as well as a reference to the register value itself.
- Template Parameters
-
◆ Field
template<addr_t BaseAddress, auto Offset, typename SizeType = reg_t>
template<u8 From, u8 To>
Bitfield access.
- Template Parameters
-
From | First bit to include in bitfield |
To | Last bit to include in bitfield |
◆ Value
template<addr_t BaseAddress, auto Offset, typename SizeType = reg_t>
auto& bsp::Register< BaseAddress, Offset, SizeType >::Value = *reinterpret_cast<IO<SizeType>*>(BaseAddress + static_cast<addr_t>(Offset)) |
|
inlinestatic |
Reference to the register value.
The documentation for this struct was generated from the following file: