20 #ifndef STM32F4xx_LL_CRC_H
21 #define STM32F4xx_LL_CRC_H
28 #include "stm32f4xx.h"
71 #define LL_CRC_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, __VALUE__)
79 #define LL_CRC_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
109 SET_BIT(CRCx->CR, CRC_CR_RESET);
129 WRITE_REG(CRCx->DR, InData);
140 return (uint32_t)(READ_REG(CRCx->DR));
152 return (uint32_t)(READ_REG(CRCx->IDR));
165 *((uint8_t __IO *)(&CRCx->IDR)) = (uint8_t) InData;
171 #if defined(USE_FULL_LL_DRIVER)
__STATIC_INLINE void LL_CRC_ResetCRCCalculationUnit(CRC_TypeDef *CRCx)
Reset the CRC calculation unit.
__STATIC_INLINE uint32_t LL_CRC_ReadData32(const CRC_TypeDef *CRCx)
Return current CRC calculation result. 32 bits value is returned. @rmtoll DR DR LL_CRC_ReadData32.
__STATIC_INLINE void LL_CRC_FeedData32(CRC_TypeDef *CRCx, uint32_t InData)
Write given 32-bit data to the CRC calculator @rmtoll DR DR LL_CRC_FeedData32.
__STATIC_INLINE uint32_t LL_CRC_Read_IDR(CRC_TypeDef *CRCx)
Return data stored in the Independent Data(IDR) register.
__STATIC_INLINE void LL_CRC_Write_IDR(CRC_TypeDef *CRCx, uint32_t InData)
Store data in the Independent Data(IDR) register.
ErrorStatus LL_CRC_DeInit(const CRC_TypeDef *CRCx)
De-initialize CRC registers (Registers restored to their default values).