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

Macros

#define NXP_FLD2VAL(field, value)   (((value) & (field ## _MASK)) >> (field ## _SHIFT))
 Mask and right-shift a register value to extract a bit field value. More...
 
#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...
 

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
fieldName of the register bit field.
valueValue of the register.
Returns
Masked and shifted bit field value.

Definition at line 46159 of file MIMXRT1052.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
fieldName of the register bit field.
valueValue of the bit field.
Returns
Masked and shifted value.

Definition at line 46152 of file MIMXRT1052.h.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:11