11 #ifndef __MG32L003_CRC_H 12 #define __MG32L003_CRC_H 36 #define CRC_DataAddress (CRC_BASE + 0x80) 47 uint32_t
CRC_Accumulate(
const uint8_t *ptr_data, uint32_t bufferLength);
48 uint32_t
CRC_Calculate(
const uint8_t *ptr_data, uint32_t bufferLength);
void CRC_InitResult(void)
Initialize CRC caculation.
Definition: mg32l003_crc.c:37
void CRC_DeInit(void)
DeInitializes the CRC peripheral.
Definition: mg32l003_crc.c:46
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 ...
Definition: mg32l003_crc.c:62
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.
Definition: mg32l003_crc.c:83