| 559 | |
| 560 | #if ONEWIRE_CRC16 |
| 561 | bool OneWire::check_crc16(const uint8_t* input, uint16_t len, const uint8_t* inverted_crc, uint16_t crc) |
| 562 | { |
| 563 | crc = ~crc16(input, len, crc); |
| 564 | return (crc & 0xFF) == inverted_crc[0] && (crc >> 8) == inverted_crc[1]; |
| 565 | } |
| 566 | |
| 567 | uint16_t OneWire::crc16(const uint8_t* input, uint16_t len, uint16_t crc) |
| 568 | { |
nothing calls this directly
no outgoing calls
no test coverage detected