mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
13 lines
312 B
C
13 lines
312 B
C
#ifndef CRC_H
|
|
#define CRC_H
|
|
|
|
#define CCITT_POLY 0x1021
|
|
#define BROTHER_POLY 0x000201
|
|
|
|
extern uint8_t xorBytes(const uint8_t* start, const uint8_t* end);
|
|
extern uint16_t crc16(uint16_t poly, const uint8_t* start, const uint8_t* end);
|
|
extern uint32_t crcbrother(const uint8_t* start, const uint8_t* end);
|
|
|
|
#endif
|
|
|