Rev Author Line No. Line
3328 povik 1 /**
2 ******************************************************************************
3 * @file stm32f10x_crc.h
4 * @author MCD Application Team
5 * @version V3.1.0
6 * @date 06/19/2009
7 * @brief This file contains all the functions prototypes for the CRC firmware
8 * library.
9 ******************************************************************************
10 * @copy
11 *
12 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 *
19 * <h2><center>&copy; COPYRIGHT 2009 STMicroelectronics</center></h2>
20 */
21  
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __STM32F10x_CRC_H
24 #define __STM32F10x_CRC_H
25  
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29  
30 /* Includes ------------------------------------------------------------------*/
31 #include "stm32f10x.h"
32  
33 /** @addtogroup STM32F10x_StdPeriph_Driver
34 * @{
35 */
36  
37 /** @addtogroup CRC
38 * @{
39 */
40  
41 /** @defgroup CRC_Exported_Types
42 * @{
43 */
44  
45 /**
46 * @}
47 */
48  
49 /** @defgroup CRC_Exported_Constants
50 * @{
51 */
52  
53 /**
54 * @}
55 */
56  
57 /** @defgroup CRC_Exported_Macros
58 * @{
59 */
60  
61 /**
62 * @}
63 */
64  
65 /** @defgroup CRC_Exported_Functions
66 * @{
67 */
68  
69 void CRC_ResetDR(void);
70 uint32_t CRC_CalcCRC(uint32_t Data);
71 uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
72 uint32_t CRC_GetCRC(void);
73 void CRC_SetIDRegister(uint8_t IDValue);
74 uint8_t CRC_GetIDRegister(void);
75  
76 #ifdef __cplusplus
77 }
78 #endif
79  
80 #endif /* __STM32F10x_CRC_H */
81 /**
82 * @}
83 */
84  
85 /**
86 * @}
87 */
88  
89 /**
90 * @}
91 */
92  
93 /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/