WB32L003 Standard Peripherals Firmware Library

wb32l003_crc.h
浏览该文件的文档.
1
10 /* Define to prevent recursive inclusion -------------------------------------*/
11 #ifndef __WB32L003_CRC_H
12 #define __WB32L003_CRC_H
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 /* Includes ------------------------------------------------------------------*/
19 #include "wb32l003.h"
20
29 /* Exported types ------------------------------------------------------------*/
30 /* Exported constants --------------------------------------------------------*/
31
36 #define CRC_DataAddress (CRC_BASE + 0x80)
42 /* Exported macro ------------------------------------------------------------*/
43 /* Exported functions --------------------------------------------------------*/
44
45 void CRC_InitResult(void);
46 void CRC_DeInit(void);
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);
49
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif /* __WB32L003_CRC_H */
CRC_InitResult
void CRC_InitResult(void)
Initialize CRC caculation.
Definition: wb32l003_crc.c:37
CRC_DeInit
void CRC_DeInit(void)
DeInitializes the CRC peripheral.
Definition: wb32l003_crc.c:46
CRC_Accumulate
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: wb32l003_crc.c:62
CRC_Calculate
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: wb32l003_crc.c:83