![]() |
Imt.Base C++ API V4.1.1.0
|
A read-write mutability policy for use with Register template. More...
#include <Imt.Base.Core.Util/inc/Imt.Base.Core.Util/ReadWritePolicy.h>
Static Public Member Functions | |
static void | write (uint32_t volatile *device, uint32_t offset, uint32_t mask, uint32_t value) |
Write bit field to a read-write address. | |
static void | set (uint32_t volatile *device, uint32_t mask) |
Set bits of a read-write address. | |
static void | clear (uint32_t volatile *device, uint32_t mask) |
Clear bits of a read-write address. | |
![]() | |
static unsigned | read (uint32_t volatile *device, uint32_t offset, uint32_t mask) |
Read bit field from a read-only address. | |
A read-write mutability policy for use with Register template.
Definition at line 50 of file ReadWritePolicy.h.
|
inlinestatic |
Clear bits of a read-write address.
device | Pointer to the address to read from. |
mask | Mask which represents the bits to be cleared. |
Definition at line 77 of file ReadWritePolicy.h.
|
inlinestatic |
Set bits of a read-write address.
device | Pointer to the address to write to. |
mask | Mask which represents the bits to be set. |
Definition at line 68 of file ReadWritePolicy.h.
|
inlinestatic |
Write bit field to a read-write address.
device | Pointer to the address to write to. |
offset | Offset of the bit field to be written. |
mask | Mask which represents the bit field to be written. |
value | Value of the bit field to be written. |
Definition at line 59 of file ReadWritePolicy.h.