MG32F157 Standard Peripherals Firmware Library
mg32f157_crc.h
Go to the documentation of this file.
1 
10 /* Define to prevent recursive inclusion -------------------------------------*/
11 #ifndef __MG32F157_CRC_H
12 #define __MG32F157_CRC_H
13 
14 #ifdef __cplusplus
15  extern "C" {
16 #endif
17 
18 /* Includes ------------------------------------------------------------------*/
19 #include "mg32f157.h"
20 
29 /* Exported types ------------------------------------------------------------*/
30 /* Exported constants --------------------------------------------------------*/
31 /* Exported macro ------------------------------------------------------------*/
32 /* Exported functions --------------------------------------------------------*/
33 
34 void CRC_ResetDR(void);
35 uint32_t CRC_CalcCRC(uint32_t Data);
36 uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
37 uint32_t CRC_GetCRC(void);
38 void CRC_SetIDRegister(uint8_t IDValue);
39 uint8_t CRC_GetIDRegister(void);
40 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* __MG32F157_CRC_H */
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: mg32f157_crc.c:61
uint32_t CRC_CalcCRC(uint32_t Data)
Computes the 32-bit CRC of a given data word(32-bit).
Definition: mg32f157_crc.c:48
uint8_t CRC_GetIDRegister(void)
Returns the 8-bit data stored in the Independent Data(ID) register.
Definition: mg32f157_crc.c:97
void CRC_SetIDRegister(uint8_t IDValue)
Stores a 8-bit data in the Independent Data(ID) register.
Definition: mg32f157_crc.c:87
uint32_t CRC_GetCRC(void)
Returns the current CRC value.
Definition: mg32f157_crc.c:77
void CRC_ResetDR(void)
Resets the CRC Data register (DR).
Definition: mg32f157_crc.c:37