STM32F4xx HAL Driver
master
STM32CubeF4 HAL / LL Drivers API Reference
Toggle main menu visibility
Loading...
Searching...
No Matches
stm32f4xx_ll_crc.h
Go to the documentation of this file.
1
18
19
/* Define to prevent recursive inclusion -------------------------------------*/
20
#ifndef STM32F4xx_LL_CRC_H
21
#define STM32F4xx_LL_CRC_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/* Includes ------------------------------------------------------------------*/
28
#include "stm32f4xx.h"
29
33
34
#if defined(CRC)
35
39
40
/* Private types -------------------------------------------------------------*/
41
/* Private variables ---------------------------------------------------------*/
42
/* Private constants ---------------------------------------------------------*/
43
/* Private macros ------------------------------------------------------------*/
44
45
/* Exported types ------------------------------------------------------------*/
46
/* Exported constants --------------------------------------------------------*/
50
54
55
/* Exported macro ------------------------------------------------------------*/
59
63
71
#define LL_CRC_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, __VALUE__)
72
79
#define LL_CRC_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
83
87
88
89
/* Exported functions --------------------------------------------------------*/
93
97
107
__STATIC_INLINE
void
LL_CRC_ResetCRCCalculationUnit(CRC_TypeDef *CRCx)
108
{
109
SET_BIT(CRCx->CR, CRC_CR_RESET);
110
}
111
115
119
127
__STATIC_INLINE
void
LL_CRC_FeedData32(CRC_TypeDef *CRCx, uint32_t InData)
128
{
129
WRITE_REG(CRCx->DR, InData);
130
}
131
138
__STATIC_INLINE uint32_t LL_CRC_ReadData32(
const
CRC_TypeDef *CRCx)
139
{
140
return
(uint32_t)(READ_REG(CRCx->DR));
141
}
142
150
__STATIC_INLINE uint32_t LL_CRC_Read_IDR(CRC_TypeDef *CRCx)
151
{
152
return
(uint32_t)(READ_REG(CRCx->IDR));
153
}
154
163
__STATIC_INLINE
void
LL_CRC_Write_IDR(CRC_TypeDef *CRCx, uint32_t InData)
164
{
165
*((uint8_t __IO *)(&CRCx->IDR)) = (uint8_t) InData;
166
}
170
171
#if defined(USE_FULL_LL_DRIVER)
175
176
ErrorStatus LL_CRC_DeInit(
const
CRC_TypeDef *CRCx);
177
181
#endif
/* USE_FULL_LL_DRIVER */
182
186
190
191
#endif
/* defined(CRC) */
192
196
197
#ifdef __cplusplus
198
}
199
#endif
200
201
#endif
/* STM32F4xx_LL_CRC_H */
hal-driver
Inc
stm32f4xx_ll_crc.h
Generated by
1.17.0