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