no-OS
crc24.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __CRC24_H
40 #define __CRC24_H
41 
42 #include <stdint.h>
43 #include <stddef.h>
44 
45 #define CRC24_TABLE_SIZE 256
46 
47 #define DECLARE_CRC24_TABLE(_table) \
48  static uint32_t _table[CRC24_TABLE_SIZE]
49 
50 void crc24_populate_msb(uint32_t * table, const uint32_t polynomial);
51 uint32_t crc24(const uint32_t * table, const uint8_t *pdata, size_t nbytes,
52  uint32_t crc);
53 
54 #endif // __CRC24_H
crc24
uint32_t crc24(const uint32_t *table, const uint8_t *pdata, size_t nbytes, uint32_t crc)
crc24_populate_msb
void crc24_populate_msb(uint32_t *table, const uint32_t polynomial)