CRC driver modules.
More...
|
void | CRC_InitResult (void) |
| Initialize CRC caculation. More...
|
|
void | CRC_DeInit (void) |
| DeInitializes the CRC peripheral. More...
|
|
uint32_t | CRC_Accumulate (const uint8_t *ptr_data, uint32_t bufferLength) |
| Computes the 16-bit CRC of 8-bit data buffer using combination of the previous CRC value and the new one. More...
|
|
uint32_t | CRC_Calculate (const uint8_t *ptr_data, uint32_t bufferLength) |
| Computes the 16-bit CRC of 8-bit data buffer independently of the previous CRC value. More...
|
|
CRC driver modules.
◆ CRC_Accumulate()
uint32_t CRC_Accumulate |
( |
const uint8_t * |
pBuffer, |
|
|
uint32_t |
bufferLength |
|
) |
| |
Computes the 16-bit CRC of 8-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 (defined in word, 4 bytes) |
- Return values
-
◆ CRC_Calculate()
uint32_t CRC_Calculate |
( |
const uint8_t * |
pBuffer, |
|
|
uint32_t |
bufferLength |
|
) |
| |
Computes the 16-bit CRC of 8-bit data buffer independently of the previous CRC value.
- Parameters
-
pBuffer | Pointer to the buffer containing the data to be computed |
bufferLength | Length of the buffer to be computed (defined in word, 4 bytes) |
- Return values
-
◆ CRC_DeInit()
DeInitializes the CRC peripheral.
- Return values
-
◆ CRC_InitResult()
void CRC_InitResult |
( |
void |
| ) |
|
Initialize CRC caculation.
- Return values
-