Memory-mapped I/O register.
More...
#include </home/travis/build/forGGe/theCore/platform/common/export/common/mmio.hpp>
|
static uint32_t | read () |
| Reads data from a register. More...
|
|
static void | write (uint32_t val) |
| Writes data to a register. More...
|
|
template<typename Mut, std::uintptr_t addr, uint32_t offset, uint32_t width>
struct ecl::mmio::reg< Mut, addr, offset, width >
Memory-mapped I/O register.
- Template Parameters
-
Mut | Mutability trait. |
addr | Address of a memory map register. |
offset | Offset of the data inside register. |
width | Width of a data stored in the register. |
- See also
- rw_mut
-
ro_mut
-
wo_mut
◆ read()
template<typename Mut , std::uintptr_t addr, uint32_t offset, uint32_t width>
Reads data from a register.
◆ write()
template<typename Mut , std::uintptr_t addr, uint32_t offset, uint32_t width>
static void ecl::mmio::reg< Mut, addr, offset, width >::write |
( |
uint32_t |
val | ) |
|
|
inlinestatic |
Writes data to a register.
- Parameters
-
The documentation for this struct was generated from the following file: