- return bit_reverse_uint16(crc16(message, length, 0x0000, 0x1021));
+ return bit_reverse_uint16(crc16(message, length, 0x0000, CRC16_POLY_CCITT));
+}
+
+//ICEMAN: not working yet,
+// This CRC-16 is used in Legic Advant systems.
+uint16_t crc16_legic(uint8_t const *message, int length, uint16_t inital) {
+ return crc16(message, length, inital, CRC16_POLY_LEGIC);