MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / crc16_CCITT

Function crc16_CCITT

libraries/CRC/CRC.cpp:169–172  ·  view source on GitHub ↗

CRC-CCITT POLYNOME = x13 + X5 + 1 = 0001 0000 0010 0001 = 0x1021

Source from the content-addressed store, hash-verified

167
168// CRC-CCITT POLYNOME = x13 + X5 + 1 = 0001 0000 0010 0001 = 0x1021
169uint16_t crc16_CCITT(uint8_t *array, uint16_t length)
170{
171 return crc16(array, length, 0x1021, 0xFFFF);
172}
173
174
175// CRC-32 POLYNOME = x32 + ..... + 1

Callers

nothing calls this directly

Calls 1

crc16Function · 0.85

Tested by

no test coverage detected