STM CMSIS
stm32f4xx_hal_crc.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef __STM32F4xx_HAL_CRC_H
40 #define __STM32F4xx_HAL_CRC_H
41 
42 #ifdef __cplusplus
43  extern "C" {
44 #endif
45 
46 /* Includes ------------------------------------------------------------------*/
47 #include "stm32f4xx_hal_def.h"
48 
58 /* Exported types ------------------------------------------------------------*/
66 typedef enum
67 {
82 typedef struct
83 {
88  __IO HAL_CRC_StateTypeDef State;
99 /* Exported constants --------------------------------------------------------*/
100 /* Exported macro ------------------------------------------------------------*/
109 #define __HAL_CRC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CRC_STATE_RESET)
110 
116 #define __HAL_CRC_DR_RESET(__HANDLE__) ((__HANDLE__)->Instance->CR |= CRC_CR_RESET)
117 
124 #define __HAL_CRC_SET_IDR(__HANDLE__, __VALUE__) (WRITE_REG((__HANDLE__)->Instance->IDR, (__VALUE__)))
125 
131 #define __HAL_CRC_GET_IDR(__HANDLE__) (((__HANDLE__)->Instance->IDR) & CRC_IDR_IDR)
132 
136 /* Exported functions --------------------------------------------------------*/
144 HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc);
145 HAL_StatusTypeDef HAL_CRC_DeInit (CRC_HandleTypeDef *hcrc);
146 void HAL_CRC_MspInit(CRC_HandleTypeDef *hcrc);
147 void HAL_CRC_MspDeInit(CRC_HandleTypeDef *hcrc);
155 uint32_t HAL_CRC_Accumulate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength);
156 uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength);
164 HAL_CRC_StateTypeDef HAL_CRC_GetState(CRC_HandleTypeDef *hcrc);
172 /* Private types -------------------------------------------------------------*/
181 /* Private defines -----------------------------------------------------------*/
190 /* Private variables ---------------------------------------------------------*/
199 /* Private constants ---------------------------------------------------------*/
208 /* Private macros ------------------------------------------------------------*/
217 /* Private functions prototypes ----------------------------------------------*/
226 /* Private functions ---------------------------------------------------------*/
243 #ifdef __cplusplus
244 }
245 #endif
246 
247 #endif /* __STM32F4xx_HAL_CRC_H */
248 
249 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
__IO HAL_CRC_StateTypeDef State
Definition: stm32f4xx_hal_crc.h:88
Definition: stm32f4xx_hal_crc.h:72
This file contains HAL common defines, enumeration, macros and structures definitions.
Definition: stm32f4xx_hal_crc.h:71
CRC calculation unit.
Definition: stm32f401xc.h:207
Definition: stm32f4xx_hal_crc.h:70
Definition: stm32f4xx_hal_crc.h:82
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:57
HAL_CRC_StateTypeDef
Definition: stm32f4xx_hal_crc.h:66
Definition: stm32f4xx_hal_crc.h:68
#define __IO
Definition: core_cm0.h:213
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32f4xx_hal_def.h:68
HAL_LockTypeDef Lock
Definition: stm32f4xx_hal_crc.h:86
Definition: stm32f4xx_hal_crc.h:69
CRC_TypeDef * Instance
Definition: stm32f4xx_hal_crc.h:84