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