theCore C++ embedded framework
ecl::mmio Namespace Reference

Data Structures

struct  reg
 Memory-mapped I/O register. More...
 
struct  ro_mut
 Read-only mutability trait. More...
 
struct  rw_mut
 Read-write mutability trait. More...
 
struct  wo_mut
 Write-only mutability trait. More...
 

Functions

constexpr uint32_t generate_unshifted_mask (uint32_t width)
 Generates bitstring of consequent '1's of the given width. More...
 
constexpr uint32_t generate_mask (uint32_t width, uint32_t offset)
 Generates shifted mask. More...
 

Function Documentation

◆ generate_unshifted_mask()

constexpr uint32_t ecl::mmio::generate_unshifted_mask ( uint32_t  width)

Generates bitstring of consequent '1's of the given width.

Parameters
[in]widthDesired width. Must not be 0.

◆ generate_mask()

constexpr uint32_t ecl::mmio::generate_mask ( uint32_t  width,
uint32_t  offset 
)

Generates shifted mask.

Parameters
[in]widthWidth of the mask.
[in]offsetOffset of the mask.
Here is the call graph for this function: