MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / check_crc16

Method check_crc16

Arduino/libraries/OneWire/OneWire.cpp:561–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560#if ONEWIRE_CRC16
561bool 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
567uint16_t OneWire::crc16(const uint8_t* input, uint16_t len, uint16_t crc)
568{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected