Merge pull request #11270 from haslinghuis/rename_attr
[betaflight.git] / lib / main / STM32F4 / Drivers / STM32F4xx_StdPeriph_Driver / inc / stm32f4xx_crc.h
blobb026a163c1301e23a6b771dbf250301a0d57725b
1 /**
2 ******************************************************************************
3 * @file stm32f4xx_crc.h
4 * @author MCD Application Team
5 * @version V1.7.1
6 * @date 20-May-2016
7 * @brief This file contains all the functions prototypes for the CRC firmware
8 * library.
9 ******************************************************************************
10 * @attention
12 * <h2><center>&copy; 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
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f4xx.h"
40 /** @addtogroup STM32F4xx_StdPeriph_Driver
41 * @{
44 /** @addtogroup CRC
45 * @{
48 /* Exported types ------------------------------------------------------------*/
49 /* Exported constants --------------------------------------------------------*/
51 /** @defgroup CRC_Exported_Constants
52 * @{
55 /**
56 * @}
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);
69 #ifdef __cplusplus
71 #endif
73 #endif /* __STM32F4xx_CRC_H */
75 /**
76 * @}
79 /**
80 * @}
83 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/