1 /***************COPYRIGHT(C) 2019 WCH. A11 rights reserved********************* 2 * File Name : ch32f10x_crc.h 3 * Author : WCH 4 * Version : V1.0.0 5 * Date : 2019/10/15 6 * Description : This file contains all the functions prototypes for the 7 * CRC firmware library. 8 *******************************************************************************/ 9 #ifndef __CH32F10x_CRC_H 10 #define __CH32F10x_CRC_H 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #include "ch32f10x.h" 17 18 19 void CRC_ResetDR(void); 20 uint32_t CRC_CalcCRC(uint32_t Data); 21 uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); 22 uint32_t CRC_GetCRC(void); 23 void CRC_SetIDRegister(uint8_t IDValue); 24 uint8_t CRC_GetIDRegister(void); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* __CH32F10x_CRC_H */ 31 32 33 34 35 36