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 * <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2>
14 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
15 * You may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at:
18 * http://www.st.com/software_license_agreement_liberty_v2
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
26 ******************************************************************************
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F4xx_CRC_H
31 #define __STM32F4xx_CRC_H
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f4xx.h"
40 /** @addtogroup STM32F4xx_StdPeriph_Driver
48 /* Exported types ------------------------------------------------------------*/
49 /* Exported constants --------------------------------------------------------*/
51 /** @defgroup CRC_Exported_Constants
59 /* Exported macro ------------------------------------------------------------*/
60 /* Exported functions --------------------------------------------------------*/
62 void CRC_ResetDR(void);
63 uint32_t CRC_CalcCRC(uint32_t Data
);
64 uint32_t CRC_CalcBlockCRC(uint32_t pBuffer
[], uint32_t BufferLength
);
65 uint32_t CRC_GetCRC(void);
66 void CRC_SetIDRegister(uint8_t IDValue
);
67 uint8_t CRC_GetIDRegister(void);
73 #endif /* __STM32F4xx_CRC_H */
83 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/