blob: 5d5d18884c46258550334d64f1b959e2926c30f3 [file] [log] [blame]
#ifndef CRC7_H
#define CRC7_H
extern const unsigned char crc7_syndrome_table[256];
static inline unsigned char crc7_byte(unsigned char crc, unsigned char data)
{
return crc7_syndrome_table[(crc << 1) ^ data];
}
extern unsigned char fio_crc7(const unsigned char *buffer, unsigned int len);
#endif