CARME-M4 BSP  V1.5
stm32f4xx_crc.h
Go to the documentation of this file.
1 
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F4xx_CRC_H
31 #define __STM32F4xx_CRC_H
32 
33 #ifdef __cplusplus
34  extern "C" {
35 #endif
36 
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f4xx.h"
39 
48 /* Exported types ------------------------------------------------------------*/
49 /* Exported constants --------------------------------------------------------*/
50 
59 /* Exported macro ------------------------------------------------------------*/
60 /* Exported functions --------------------------------------------------------*/
61 
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);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* __STM32F4xx_CRC_H */
74 
83 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength)
Computes the 32-bit CRC of a given buffer of data word(32-bit).
Definition: stm32f4xx_crc.c:80
uint32_t CRC_CalcCRC(uint32_t Data)
Computes the 32-bit CRC of a given data word(32-bit).
Definition: stm32f4xx_crc.c:67
uint8_t CRC_GetIDRegister(void)
Returns the 8-bit data stored in the Independent Data(ID) register.
void CRC_SetIDRegister(uint8_t IDValue)
Stores a 8-bit data in the Independent Data(ID) register.
uint32_t CRC_GetCRC(void)
Returns the current CRC value.
Definition: stm32f4xx_crc.c:96
void CRC_ResetDR(void)
Resets the CRC Data register (DR).
Definition: stm32f4xx_crc.c:56