| NUC029FAE_BSP V3.02.000 The Board Support Package for NUC029FAE MCU

Modules
Core register bit field macros
Defines and Type Definitions » Status and Control Registers » Nested Vectored Interrupt Controller (NVIC) » System Control Block (SCB) » System Tick Timer (SysTick) » Core Debug Registers (CoreDebug)

Macros for use with bit field definitions (xxx_Pos, xxx_Msk). More...

Collaboration diagram for Core register bit field macros:

## Modules
| Core Definitions
| Definitions for base addresses, unions, and structures.
#define | _VAL2FLD(field, value) ((value << field ## _Pos) & field ## _Msk)
| Mask and shift a bit field value for use in a register bit range. More...
#define | _FLD2VAL(field, value) ((value & field ## _Msk) >> field ## _Pos)
| Mask and shift a register value to extract a bit filed value. More...

## Detailed Description

Macros for use with bit field definitions (xxx_Pos, xxx_Msk).

## Macro Definition Documentation

## ◆ _FLD2VAL

#define _FLD2VAL | ( |  | field,
|  |  | value
| ) |  | ((value & field ## _Msk) >> field ## _Pos)

Mask and shift a register value to extract a bit filed value.

Parameters

  [in] | field | Name of the register bit field.
  [in] | value | Value of register.

Returns
  Masked and shifted bit field value.

Definition at line 569 of file core_cm0.h.

## ◆ _VAL2FLD

#define _VAL2FLD | ( |  | field,
|  |  | value
| ) |  | ((value << field ## _Pos) & field ## _Msk)

Mask and shift a bit field value for use in a register bit range.

Parameters

  [in] | field | Name of the register bit field.
  [in] | value | Value of the bit field.

Returns
  Masked and shifted value.

Definition at line 561 of file core_cm0.h.