- return crc16(message, length, 0xffff, 0x1021);
+ return crc16(message, length, 0xffff, CRC16_POLY_CCITT);
+}
+
+uint16_t crc16_ccitt_kermit(uint8_t const *message, int length) {
+ 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);