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