theCore C++ embedded framework
ecl::mmio::reg< Mut, addr, offset, width > Struct Template Reference

Memory-mapped I/O register. More...

#include </home/travis/build/forGGe/theCore/platform/common/export/common/mmio.hpp>

Static Public Member Functions

static uint32_t read ()
 Reads data from a register. More...
 
static void write (uint32_t val)
 Writes data to a register. More...
 

Detailed Description

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
MutMutability trait.
addrAddress of a memory map register.
offsetOffset of the data inside register.
widthWidth of a data stored in the register.
See also
rw_mut
ro_mut
wo_mut

Member Function Documentation

◆ read()

template<typename Mut , std::uintptr_t addr, uint32_t offset, uint32_t width>
static uint32_t ecl::mmio::reg< Mut, addr, offset, width >::read ( )
inlinestatic

Reads data from a register.

Here is the call graph for this function:

◆ 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
[in]valValue to write.
Here is the call graph for this function:

The documentation for this struct was generated from the following file: