Callisto4Bootloader: Macros for use with bit field definitions (xxx_SHIFT, xxx_MASK).

Callisto4Bootloader

Macros
Macros for use with bit field definitions (xxx_SHIFT, xxx_MASK).
Mapping Information » Edma_request » Iomuxc_pads

## Macros

#define | NXP_VAL2FLD(field, value) (((value) << (field ## _SHIFT)) & (field ## _MASK))
| Mask and left-shift a bit field value for use in a register bit range. More...
#define | NXP_FLD2VAL(field, value) (((value) & (field ## _MASK)) >> (field ## _SHIFT))
| Mask and right-shift a register value to extract a bit field value. More...

## Detailed Description

## Macro Definition Documentation

## ◆ NXP_FLD2VAL

#define NXP_FLD2VAL | ( |  | field,
|  |  | value
| ) |  | (((value) & (field ## _MASK)) >> (field ## _SHIFT))

Mask and right-shift a register value to extract a bit field value.

Parameters

  field | Name of the register bit field.
  value | Value of the register.

Returns
  Masked and shifted bit field value.

Definition at line 48544 of file MIMXRT1062.h.

## ◆ NXP_VAL2FLD

#define NXP_VAL2FLD | ( |  | field,
|  |  | value
| ) |  | (((value) << (field ## _SHIFT)) & (field ## _MASK))

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

Parameters

  field | Name of the register bit field.
  value | Value of the bit field.

Returns
  Masked and shifted value.

Definition at line 48537 of file MIMXRT1062.h.