Dataflow Runtime API  3.1.1.0
Static Public Member Functions | List of all members
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/Register.h>

Static Public Member Functions

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

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.

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.

◆ 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

◆ 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.

◆ 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

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