2 ******************************************************************************
3 * @file stm32f4xx_crc.h
4 * @author MCD Application Team
7 * @brief This file contains all the functions prototypes for the CRC firmware
9 ******************************************************************************
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.
19 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
20 ******************************************************************************
23 /* Define to prevent recursive inclusion -------------------------------------*/
24 #ifndef __STM32F4xx_CRC_H
25 #define __STM32F4xx_CRC_H
31 /* Includes ------------------------------------------------------------------*/
32 #include "stm32f4xx.h"
34 /** @addtogroup STM32F4xx_StdPeriph_Driver
42 /* Exported types ------------------------------------------------------------*/
43 /* Exported constants --------------------------------------------------------*/
45 /** @defgroup CRC_Exported_Constants
53 /* Exported macro ------------------------------------------------------------*/
54 /* Exported functions --------------------------------------------------------*/
56 void CRC_ResetDR(void);
57 uint32_t CRC_CalcCRC(uint32_t Data);
58 uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
59 uint32_t CRC_GetCRC(void);
60 void CRC_SetIDRegister(uint8_t IDValue);
61 uint8_t CRC_GetIDRegister(void);
67 #endif /* __STM32F4xx_CRC_H */
77 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/