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

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

#include <Imt.Base.Core.Util/inc/Imt.Base.Core.Util/WriteOnlyPolicy.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 write-only address.
 
static void set (uint32_t volatile *device, uint32_t mask)
 Set bits of a write-only address.
 

Detailed Description

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

Definition at line 49 of file WriteOnlyPolicy.h.

Member Function Documentation

◆ set()

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

Set bits of a write-only address.

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

Definition at line 67 of file WriteOnlyPolicy.h.

◆ write()

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

Write bit field to a write-only 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 58 of file WriteOnlyPolicy.h.


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