Dataflow Runtime API  3.1.1.0
Static Public Member Functions | List of all members
imt::base::core::util::ReadWritePolicy Struct Reference

A read-write mutability policy for use with reg_t. More...

#include <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 (volatile uint32_t *device, uint32_t offset, uint32_t mask, uint32_t value)
 Write bit field to a read-write address. More...
 
static void set (volatile uint32_t *device, uint32_t mask)
 Set bits of a read-write address. More...
 
static void clear (volatile uint32_t *device, uint32_t mask)
 Clear bits of a read-write address. More...
 
- Static Public Member Functions inherited from imt::base::core::util::ReadOnlyPolicy
static unsigned read (volatile uint32_t *device, uint32_t offset, uint32_t mask)
 Read bit field from a read-only address. More...
 

Detailed Description

A read-write mutability policy for use with reg_t.

Member Function Documentation

◆ clear()

static void imt::base::core::util::ReadWritePolicy::clear ( volatile uint32_t 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.

◆ set()

static void imt::base::core::util::ReadWritePolicy::set ( volatile uint32_t 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.

◆ write()

static void imt::base::core::util::ReadWritePolicy::write ( volatile uint32_t 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.

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