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:
David Given
2019-03-05 00:10:20 +01:00
parent 3835afd022
commit 94fb10eb02
31 changed files with 621 additions and 532 deletions

View File

@@ -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