mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Behemoth change to rework everything to use Bytes rather than vectors of
uint8_t. The tests pass, but of course, nothing decodes any more.
This commit is contained in:
10
lib/crc.h
10
lib/crc.h
@@ -6,11 +6,11 @@
|
||||
#define MODBUS_POLY_REF 0xa001
|
||||
#define BROTHER_POLY 0x000201
|
||||
|
||||
extern uint16_t sumBytes(const uint8_t* start, const uint8_t* end);
|
||||
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 uint16_t crc16ref(uint16_t poly, const uint8_t* start, const uint8_t* end);
|
||||
extern uint32_t crcbrother(const uint8_t* start, const uint8_t* end);
|
||||
extern uint16_t sumBytes(const Bytes& bytes);
|
||||
extern uint8_t xorBytes(const Bytes& bytes);
|
||||
extern uint16_t crc16(uint16_t poly, const Bytes& bytes);
|
||||
extern uint16_t crc16ref(uint16_t poly, const Bytes& bytes);
|
||||
extern uint32_t crcbrother(const Bytes& bytes);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user