Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
imt::base::core::util::ReadWritePolicy Struct Reference

A read-write mutability policy for use with Register template. More...

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

Inheritance diagram for imt::base::core::util::ReadWritePolicy:
imt::base::core::util::ReadOnlyPolicy

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 Public Member Functions inherited from imt::base::core::util::ReadOnlyPolicy
static unsigned read (uint32_t volatile *device, uint32_t offset, uint32_t mask)
 Read bit field from a read-only address.
 

Detailed Description

A read-write mutability policy for use with Register template.

Definition at line 50 of file ReadWritePolicy.h.

Member Function Documentation

◆ clear()

static void imt::base::core::util::ReadWritePolicy::clear ( uint32_t volatile *  device,
uint32_t  mask 
)
inlinestatic

Clear bits of a read-write address.

Parameters
devicePointer to the address to read from.
maskMask which represents the bits to be cleared.

Definition at line 77 of file ReadWritePolicy.h.

◆ set()

static void imt::base::core::util::ReadWritePolicy::set ( uint32_t volatile *  device,
uint32_t  mask 
)
inlinestatic

Set bits of a read-write address.

Parameters
devicePointer to the address to write to.
maskMask which represents the bits to be set.

Definition at line 68 of file ReadWritePolicy.h.

◆ write()

static void imt::base::core::util::ReadWritePolicy::write ( uint32_t volatile *  device,
uint32_t  offset,
uint32_t  mask,
uint32_t  value 
)
inlinestatic

Write bit field to a read-write address.

Parameters
devicePointer to the address to write to.
offsetOffset of the bit field to be written.
maskMask which represents the bit field to be written.
valueValue of the bit field to be written.

Definition at line 59 of file ReadWritePolicy.h.


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