OpenOCD
field_helpers.h File Reference
Include dependency graph for field_helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint64_t field_value (uint64_t mask, uint64_t val)
 
static uint32_t field_value32 (uint32_t mask, uint32_t val)
 
static uint64_t get_field (uint64_t reg, uint64_t mask)
 
static uint32_t get_field32 (uint64_t reg, uint64_t mask)
 
static uint64_t set_field (uint64_t reg, uint64_t mask, uint64_t val)
 
static uint32_t set_field32 (uint32_t reg, uint32_t mask, uint32_t val)
 

Function Documentation

◆ field_value()

static uint64_t field_value ( uint64_t  mask,
uint64_t  val 
)
inlinestatic

◆ field_value32()

static uint32_t field_value32 ( uint32_t  mask,
uint32_t  val 
)
inlinestatic

Definition at line 42 of file field_helpers.h.

References mask, and set_field32().

◆ get_field()

◆ get_field32()

◆ set_field()

◆ set_field32()

static uint32_t set_field32 ( uint32_t  reg,
uint32_t  mask,
uint32_t  val 
)
inlinestatic

Definition at line 32 of file field_helpers.h.

References mask, and set_field().

Referenced by field_value32().