1 /*!
2  * @file        apm32s10x_crc.h
3  *
4  * @brief       This file contains all the functions prototypes for the CRC firmware library
5  *
6  * @version     V1.0.1
7  *
8  * @date        2022-12-31
9  *
10  * @attention
11  *
12  *  Copyright (C) 2022-2023 Geehy Semiconductor
13  *
14  *  You may not use this file except in compliance with the
15  *  GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE).
16  *
17  *  The program is only for reference, which is distributed in the hope
18  *  that it will be usefull and instructional for customers to develop
19  *  their software. Unless required by applicable law or agreed to in
20  *  writing, the program is distributed on an "AS IS" BASIS, WITHOUT
21  *  ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
22  *  See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions
23  *  and limitations under the License.
24  */
25 
26 /* Define to prevent recursive inclusion */
27 #ifndef __APM32S10X_CRC_H
28 #define __APM32S10X_CRC_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /* Includes */
35 #include "apm32s10x.h"
36 
37 /** @addtogroup APM32S10x_StdPeriphDriver
38   @{
39 */
40 
41 /** @addtogroup CRC_Driver CRC Driver
42   @{
43 */
44 
45 /** @defgroup CRC_Functions Functions
46   @{
47 */
48 
49 /* Reset DATA */
50 void CRC_ResetDATA(void);
51 
52 /* Operation functions */
53 uint32_t CRC_CalculateCRC(uint32_t data);
54 uint32_t CRC_CalculateBlockCRC(uint32_t* buf, uint32_t bufLen);
55 uint32_t CRC_ReadCRC(void);
56 void CRC_WriteIDRegister(uint8_t inData);
57 uint8_t CRC_ReadIDRegister(void);
58 
59 /**@} end of group CRC_Functions */
60 /**@} end of group CRC_Driver */
61 /**@} end of group APM32S10x_StdPeriphDriver */
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* __APM32S10X_CRC_H */
68 
69