openMMC
Open Source Modular MMC for AMCs
|
Macros for use with bit field definitions (xxx_Pos, xxx_Msk). More...
Topics | |
Core Definitions | |
Definitions for base addresses, unions, and structures. | |
#define | _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) |
Mask and shift a bit field value for use in a register bit range. | |
#define | _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) |
Mask and shift a register value to extract a bit filed value. | |
Macros for use with bit field definitions (xxx_Pos, xxx_Msk).
#define _FLD2VAL | ( | field, | |
value ) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) |
#include <port/ucontroller/nxp/lpc17xx/bootloader/inc/core_cm3.h>
Mask and shift a register value to extract a bit filed value.
[in] | field | Name of the register bit field. |
[in] | value | Value of register. This parameter is interpreted as an uint32_t type. |
#define _VAL2FLD | ( | field, | |
value ) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) |
#include <port/ucontroller/nxp/lpc17xx/bootloader/inc/core_cm3.h>
Mask and shift a bit field value for use in a register bit range.
[in] | field | Name of the register bit field. |
[in] | value | Value of the bit field. This parameter is interpreted as an uint32_t type. |