Alarm Sensor Module  0.1
⇒ back to Project Page
crc.h
Go to the documentation of this file.
1 #ifndef CRC_H_INCLUDED
2 #define CRC_H_INCLUDED
3 
4 
5 /****************************************************************************/
40 /******************************************
41  \internal
42  Constant definitions
43 *******************************************/
44 
45 
46 #define CRC_POLYNOM 0x04C11DB7
47 #define CRC_REV_POLYNOM 0xEDB88320
48 
49 #define CRC_START_VALUE 0xffffffff
50 
51 
52 #define CRC_INITIALIZATION 0u
53 #define CRC_UPDATE 1u
54 #define CRC_FINALIZATION 2u
55 #define CRC_COMPLETE 3u
56 
57 
58 /******************************************
59  \internal
60  Function prototypes
61 *******************************************/
62 
63 uint32_t calculate_crc32(uint8_t *, uint8_t, uint8_t);
64 
65 
66 #endif // CRC_H_INCLUDED
uint32_t calculate_crc32(uint8_t *, uint8_t, uint8_t)
Definition: crc.c:70