4.23.1 static __inline__ uint16_t _crc16_update
static __inline__ uint16_t _crc16_update(uint16_t __crc, uint8_t __data)
Optimized CRC-16 calculation.
Polynomial: x^16 + x^15 + x^2 + 1 (0xa001) Initial value: 0xffff
This CRC is normally used in disk-drive controllers.
The following is the equivalent functionality written in C.