32 #define CRC_DEFAULT_POLYNOMIAL (0x1021U)
34 #define CRC_INITIAL_SEED (0U)
static void CRC_HAL_SetWriteTranspose(CRC_Type *const base, crc_transpose_t transp)
Sets the CRC transpose type for writes.
static void CRC_HAL_SetDataLReg(CRC_Type *const base, uint16_t value)
Sets the lower 16 bits of CRC data register.
static void CRC_HAL_SetDataLLReg(CRC_Type *const base, uint8_t value)
Sets the Low Lower Byte - LL.
static void CRC_HAL_SetReadTranspose(CRC_Type *const base, crc_transpose_t transp)
Sets the CRC transpose type for reads.
static uint16_t CRC_HAL_GetDataHReg(const CRC_Type *const base)
Gets the upper 16 bits of the current CRC result.
crc_transpose_t
CRC type of transpose of read write data Implements : crc_transpose_t_Class.
static void CRC_HAL_SetSeedOrDataMode(CRC_Type *const base, bool enable)
Sets the CRC_DATA register mode.
static crc_bit_width_t CRC_HAL_GetProtocolWidth(const CRC_Type *const base)
Gets the CRC protocol width.
uint32_t CRC_HAL_GetCrc8(CRC_Type *const base, uint8_t data, bool newSeed, uint32_t seed)
Appends 8-bit data to the current CRC calculation and returns new result.
static uint32_t CRC_HAL_GetDataReg(const CRC_Type *const base)
Gets the current CRC result.
uint32_t CRC_HAL_GetCrc16(CRC_Type *const base, uint16_t data, bool newSeed, uint32_t seed)
Appends 16-bit data to the current CRC calculation and returns new result.
static crc_transpose_t CRC_HAL_GetReadTranspose(const CRC_Type *const base)
Gets the CRC transpose type for reads.
uint32_t CRC_HAL_GetCrcResult(const CRC_Type *const base)
Returns the current result of the CRC calculation.
void CRC_HAL_Init(CRC_Type *const base)
Initializes the CRC module.
static void CRC_HAL_SetPolyReg(CRC_Type *const base, uint32_t value)
Sets the polynomial register.
static void CRC_HAL_SetDataReg(CRC_Type *const base, uint32_t value)
Sets the 32 bits of CRC data register.
static void CRC_HAL_SetProtocolWidth(CRC_Type *const base, crc_bit_width_t width)
Sets the CRC protocol width.
#define CRC_DEFAULT_POLYNOMIAL
static uint16_t CRC_HAL_GetDataLReg(const CRC_Type *const base)
Gets the lower 16 bits of the current CRC result.
crc_bit_width_t
CRC bit width Implements : crc_bit_width_t_Class.
static void CRC_HAL_SetFXorMode(CRC_Type *const base, bool enable)
Sets complement read of CRC data register.
uint32_t CRC_HAL_GetCrc32(CRC_Type *const base, uint32_t data, bool newSeed, uint32_t seed)
Appends 32-bit data to the current CRC calculation and returns new result.