1 /********************************** (C) COPYRIGHT  *******************************
2  * File Name          : ch32v10x_crc.h
3  * Author             : WCH
4  * Version            : V1.0.0
5  * Date               : 2020/04/30
6  * Description        : This file contains all the functions prototypes for the
7  *                      CRC firmware library.
8  * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
9  * SPDX-License-Identifier: Apache-2.0
10  *******************************************************************************/
11 #ifndef __CH32V10x_CRC_H
12 #define __CH32V10x_CRC_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include "ch32v10x.h"
19 
20 void     CRC_ResetDR(void);
21 uint32_t CRC_CalcCRC(uint32_t Data);
22 uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
23 uint32_t CRC_GetCRC(void);
24 void     CRC_SetIDRegister(uint8_t IDValue);
25 uint8_t  CRC_GetIDRegister(void);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif /* __CH32V10x_CRC_H */
32