52 crcHandle.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_ENABLE;
53 crcHandle.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
54 crcHandle.Init.CRCLength = CRC_POLYLENGTH_32B;
55 crcHandle.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
56 crcHandle.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
57 crcHandle.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
97 return HAL_CRC_Accumulate(&
crcHandle, (uint32_t*
const)data, size);
This file contains the CRC peripheral driver function prototypes for initialization,...
This file contains the error handling function prototypes.
void ErrorHandler(void)
This function is executed in case of error occurrence.
static CRC_HandleTypeDef crcHandle
uint32_t CrcAccumulate(const uint8_t *const data, const uint32_t size)
Calculate the CRC value over the provided buffer.
void CrcDeInit(void)
De-initialize the CRC peripheral.
void CrcInit(void)
Initialize the CRC peripheral.
void RccDisableCrc(void)
Disable the CRC peripheral clock.
void RccEnableCrc(void)
Enable the CRC peripheral clock.
This file includes the microcontroller-specific HAL header files.
This file contains the RCC (Reset and Clock Control) driver function prototypes for enabling and disa...