| 54 | } |
| 55 | |
| 56 | uint8_t xorBytes(const Bytes& bytes) |
| 57 | { |
| 58 | ByteReader br(bytes); |
| 59 | |
| 60 | uint8_t i = 0; |
| 61 | while (!br.eof()) |
| 62 | i ^= br.read_8(); |
| 63 | return i; |
| 64 | } |
| 65 | |
| 66 | uint16_t crc16(uint16_t poly, uint16_t crc, const Bytes& bytes) |
| 67 | { |
no test coverage detected