STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
Loading...
Searching...
No Matches
stm32f4xx_hal_crc.h
Go to the documentation of this file.
1
18
19/* Define to prevent recursive inclusion -------------------------------------*/
20#ifndef STM32F4xx_HAL_CRC_H
21#define STM32F4xx_HAL_CRC_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/* Includes ------------------------------------------------------------------*/
28#include "stm32f4xx_hal_def.h"
29
33
37
38/* Exported types ------------------------------------------------------------*/
42
54
55
59typedef struct
60{
61 CRC_TypeDef *Instance;
62
64
66
68
71
72/* Exported constants --------------------------------------------------------*/
76
80
81/* Exported macros -----------------------------------------------------------*/
85
90#define __HAL_CRC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CRC_STATE_RESET)
91
97#define __HAL_CRC_DR_RESET(__HANDLE__) ((__HANDLE__)->Instance->CR |= CRC_CR_RESET)
98
106#define __HAL_CRC_SET_IDR(__HANDLE__, __VALUE__) (WRITE_REG((__HANDLE__)->Instance->IDR, (__VALUE__)))
107
114#define __HAL_CRC_GET_IDR(__HANDLE__) (((__HANDLE__)->Instance->IDR) & CRC_IDR_IDR)
118
119
120/* Private macros --------------------------------------------------------*/
124
128
129/* Exported functions --------------------------------------------------------*/
133
134/* Initialization and de-initialization functions ****************************/
145
146/* Peripheral Control functions ***********************************************/
150uint32_t HAL_CRC_Accumulate(CRC_HandleTypeDef *hcrc, const uint32_t pBuffer[], uint32_t BufferLength);
151uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, const uint32_t pBuffer[], uint32_t BufferLength);
155
156/* Peripheral State and Error functions ***************************************/
164
168
172
176
177#ifdef __cplusplus
178}
179#endif
180
181#endif /* STM32F4xx_HAL_CRC_H */
HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
void HAL_CRC_MspInit(CRC_HandleTypeDef *hcrc)
void HAL_CRC_MspDeInit(CRC_HandleTypeDef *hcrc)
HAL_StatusTypeDef HAL_CRC_DeInit(CRC_HandleTypeDef *hcrc)
uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, const uint32_t pBuffer[], uint32_t BufferLength)
uint32_t HAL_CRC_Accumulate(CRC_HandleTypeDef *hcrc, const uint32_t pBuffer[], uint32_t BufferLength)
HAL_CRC_StateTypeDef HAL_CRC_GetState(const CRC_HandleTypeDef *hcrc)
HAL_CRC_StateTypeDef
CRC HAL State Structure definition.
@ HAL_CRC_STATE_RESET
@ HAL_CRC_STATE_TIMEOUT
@ HAL_CRC_STATE_BUSY
@ HAL_CRC_STATE_READY
@ HAL_CRC_STATE_ERROR
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL Status structures definition.
HAL_LockTypeDef
HAL Lock structures definition.
CRC Handle Structure definition.
CRC_TypeDef * Instance
HAL_LockTypeDef Lock
volatile HAL_CRC_StateTypeDef State