36 #if defined(GPCRC_PRESENT) && (GPCRC_COUNT > 0)
77 if (init->
crcPoly == 0x04C11DB7)
84 EFM_ASSERT((init->
crcPoly & 0xFFFF0000) == 0);
98 uint32_t revPoly = __RBIT(init->
crcPoly) >> 16;
Emlib peripheral API "assert" implementation.
#define _GPCRC_CTRL_BYTEMODE_SHIFT
#define _GPCRC_CTRL_BITREVERSE_SHIFT
void GPCRC_Init(GPCRC_TypeDef *gpcrc, const GPCRC_Init_TypeDef *init)
Initialize the General Purpose Cyclic Redundancy Check (GPCRC) module.
void GPCRC_Reset(GPCRC_TypeDef *gpcrc)
Reset GPCRC registers to the hardware reset state.
General Purpose Cyclic Redundancy Check (GPCRC) API.
#define _GPCRC_CTRL_RESETVALUE
#define GPCRC_CTRL_POLYSEL_CRC32
#define _GPCRC_INIT_RESETVALUE
#define _GPCRC_POLY_POLY_MASK
#define GPCRC_CTRL_POLYSEL_16
#define _GPCRC_CTRL_BYTEREVERSE_SHIFT
#define _GPCRC_CTRL_AUTOINIT_SHIFT
#define _GPCRC_POLY_RESETVALUE
#define _GPCRC_CTRL_EN_SHIFT