Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
imt::base::core::util::Register< mutability_policy_t, address, offset, width > Struct Template Reference

Template to define register at runtime, by providing the mutability policy, like Read Only/Write Only/Read Write etc, address, offset and width. More...

#include <Imt.Base.Core.Util/inc/Imt.Base.Core.Util/Register.h>

Static Public Member Functions

static unsigned read ()
 Read the subregister.
 
static void write (uint32_t value)
 Write a subregister.
 
static void set ()
 Set all bits in the subregister to one.
 
static void clear ()
 Clear all bits in the subregister to zero.
 

Detailed Description

template<typename mutability_policy_t, uint32_t address, uint32_t offset, uint32_t width>
struct imt::base::core::util::Register< mutability_policy_t, address, offset, width >

Template to define register at runtime, by providing the mutability policy, like Read Only/Write Only/Read Write etc, address, offset and width.

Definition at line 51 of file Register.h.

Member Function Documentation

◆ clear()

template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
static void imt::base::core::util::Register< mutability_policy_t, address, offset, width >::clear ( )
inlinestatic

Clear all bits in the subregister to zero.

Definition at line 91 of file Register.h.

◆ read()

template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
static unsigned imt::base::core::util::Register< mutability_policy_t, address, offset, width >::read ( )
inlinestatic

Read the subregister.

Returns
the value

Definition at line 60 of file Register.h.

◆ set()

template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
static void imt::base::core::util::Register< mutability_policy_t, address, offset, width >::set ( )
inlinestatic

Set all bits in the subregister to one.

Definition at line 82 of file Register.h.

◆ write()

template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
static void imt::base::core::util::Register< mutability_policy_t, address, offset, width >::write ( uint32_t  value)
inlinestatic

Write a subregister.

Parameters
valuethe new value

Definition at line 71 of file Register.h.


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