==============================================================================
##### Peripheral Control functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) Compute the 32-bit CRC value of 32-bit data buffer,
using combination of the previous CRC value and the new one.
(+) Compute the 32-bit CRC value of 32-bit data buffer,
independently of the previous CRC value.
◆ HAL_CRC_Accumulate()
| uint32_t HAL_CRC_Accumulate |
( |
CRC_HandleTypeDef * |
hcrc, |
|
|
uint8_t * |
pBuffer, |
|
|
uint32_t |
BufferLength |
|
) |
| |
Computes the 32-bit CRC of 32-bit data buffer using combination of the previous CRC value and the new one.
- Parameters
-
| hcrc | pointer to a CRC_HandleTypeDef structure that contains the configuration information for CRC |
| pBuffer | pointer to the buffer containing the data to be computed |
| BufferLength | length of the buffer to be computed |
- Return values
-
◆ HAL_CRC_Calculate()
| uint32_t HAL_CRC_Calculate |
( |
CRC_HandleTypeDef * |
hcrc, |
|
|
uint8_t * |
pBuffer, |
|
|
uint32_t |
BufferLength |
|
) |
| |
Computes the 32-bit CRC of 32-bit data buffer independently of the previous CRC value.
- Parameters
-
| hcrc | pointer to a CRC_HandleTypeDef structure that contains the configuration information for CRC |
| pBuffer | Pointer to the buffer containing the data to be computed |
| BufferLength | Length of the buffer to be computed |
- Return values
-
◆ HAL_CRC_Setmode()
Set CRC mode for calculation.
- Parameters
-
◆ HAL_CRC_Setmode_Customized()
| void HAL_CRC_Setmode_Customized |
( |
CRC_HandleTypeDef * |
hcrc, |
|
|
uint32_t |
init, |
|
|
uint32_t |
poly, |
|
|
HAL_CRC_Mode |
mode |
|
) |
| |
Set Cutomized CRC mode for calculation.
- Parameters
-
| hcrc | pointer to a CRC_HandleTypeDef structure that contains the configuration information for CRC |
| init | initial CRC value |
| poly | Programmable polynomial |
| mode | Mode for CRC calculation, but use customized initial value and poly |