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>
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.
◆ clear()
template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
Clear all bits in the subregister to zero.
◆ read()
template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
Read the subregister.
- Returns
- the value
◆ set()
template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
Set all bits in the subregister to one.
◆ write()
template<typename mutability_policy_t , uint32_t address, uint32_t offset, uint32_t width>
Write a subregister.
- Parameters
-
The documentation for this struct was generated from the following file:
- D:/_Work/10/s/Imt.Base/Imt.Base.Core.Util/Register.h