57 #ifdef HAL_CRC_MODULE_ENABLED
104 assert_param(IS_CRC_ALL_INSTANCE(hcrc->
Instance));
109 hcrc->
Lock = HAL_UNLOCKED;
135 assert_param(IS_CRC_ALL_INSTANCE(hcrc->
Instance));
147 __HAL_CRC_DR_RESET(hcrc);
150 __HAL_CRC_SET_IDR(hcrc, 0);
236 for (index = 0U; index < BufferLength; index++)
238 hcrc->
Instance->DR = pBuffer[index];
267 __HAL_CRC_DR_RESET(hcrc);
270 for (index = 0U; index < BufferLength; index++)
272 hcrc->
Instance->DR = pBuffer[index];
HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
Initialize the CRC according to the specified parameters in the CRC_InitTypeDef and create the associ...
void HAL_CRC_MspInit(CRC_HandleTypeDef *hcrc)
Initializes the CRC MSP.
void HAL_CRC_MspDeInit(CRC_HandleTypeDef *hcrc)
DeInitialize the CRC MSP.
HAL_StatusTypeDef HAL_CRC_DeInit(CRC_HandleTypeDef *hcrc)
DeInitialize the CRC peripheral.
uint32_t HAL_CRC_Accumulate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
Compute the 32-bit CRC value of a 32-bit data buffer starting with the previously computed CRC as ini...
uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
Compute the 32-bit CRC value of a 32-bit data buffer starting with hcrc->Instance->INIT as initializa...
HAL_CRC_StateTypeDef HAL_CRC_GetState(const CRC_HandleTypeDef *hcrc)
Return the CRC handle state.
__IO HAL_CRC_StateTypeDef State
HAL_CRC_StateTypeDef
CRC HAL State Structure definition.
CRC Handle Structure definition.
This file contains all the functions prototypes for the HAL module driver.