tashtwenty/firmware1704/crc16hi.inc
lampmerchant 39f9c801b1 20220421
2022-04-21 17:40:52 -06:00

258 lines
3.3 KiB
PHP

;LUT for high byte of CCITT CRC16
retlw 0x00
retlw 0x10
retlw 0x20
retlw 0x30
retlw 0x40
retlw 0x50
retlw 0x60
retlw 0x70
retlw 0x81
retlw 0x91
retlw 0xA1
retlw 0xB1
retlw 0xC1
retlw 0xD1
retlw 0xE1
retlw 0xF1
retlw 0x12
retlw 0x02
retlw 0x32
retlw 0x22
retlw 0x52
retlw 0x42
retlw 0x72
retlw 0x62
retlw 0x93
retlw 0x83
retlw 0xB3
retlw 0xA3
retlw 0xD3
retlw 0xC3
retlw 0xF3
retlw 0xE3
retlw 0x24
retlw 0x34
retlw 0x04
retlw 0x14
retlw 0x64
retlw 0x74
retlw 0x44
retlw 0x54
retlw 0xA5
retlw 0xB5
retlw 0x85
retlw 0x95
retlw 0xE5
retlw 0xF5
retlw 0xC5
retlw 0xD5
retlw 0x36
retlw 0x26
retlw 0x16
retlw 0x06
retlw 0x76
retlw 0x66
retlw 0x56
retlw 0x46
retlw 0xB7
retlw 0xA7
retlw 0x97
retlw 0x87
retlw 0xF7
retlw 0xE7
retlw 0xD7
retlw 0xC7
retlw 0x48
retlw 0x58
retlw 0x68
retlw 0x78
retlw 0x08
retlw 0x18
retlw 0x28
retlw 0x38
retlw 0xC9
retlw 0xD9
retlw 0xE9
retlw 0xF9
retlw 0x89
retlw 0x99
retlw 0xA9
retlw 0xB9
retlw 0x5A
retlw 0x4A
retlw 0x7A
retlw 0x6A
retlw 0x1A
retlw 0x0A
retlw 0x3A
retlw 0x2A
retlw 0xDB
retlw 0xCB
retlw 0xFB
retlw 0xEB
retlw 0x9B
retlw 0x8B
retlw 0xBB
retlw 0xAB
retlw 0x6C
retlw 0x7C
retlw 0x4C
retlw 0x5C
retlw 0x2C
retlw 0x3C
retlw 0x0C
retlw 0x1C
retlw 0xED
retlw 0xFD
retlw 0xCD
retlw 0xDD
retlw 0xAD
retlw 0xBD
retlw 0x8D
retlw 0x9D
retlw 0x7E
retlw 0x6E
retlw 0x5E
retlw 0x4E
retlw 0x3E
retlw 0x2E
retlw 0x1E
retlw 0x0E
retlw 0xFF
retlw 0xEF
retlw 0xDF
retlw 0xCF
retlw 0xBF
retlw 0xAF
retlw 0x9F
retlw 0x8F
retlw 0x91
retlw 0x81
retlw 0xB1
retlw 0xA1
retlw 0xD1
retlw 0xC1
retlw 0xF1
retlw 0xE1
retlw 0x10
retlw 0x00
retlw 0x30
retlw 0x20
retlw 0x50
retlw 0x40
retlw 0x70
retlw 0x60
retlw 0x83
retlw 0x93
retlw 0xA3
retlw 0xB3
retlw 0xC3
retlw 0xD3
retlw 0xE3
retlw 0xF3
retlw 0x02
retlw 0x12
retlw 0x22
retlw 0x32
retlw 0x42
retlw 0x52
retlw 0x62
retlw 0x72
retlw 0xB5
retlw 0xA5
retlw 0x95
retlw 0x85
retlw 0xF5
retlw 0xE5
retlw 0xD5
retlw 0xC5
retlw 0x34
retlw 0x24
retlw 0x14
retlw 0x04
retlw 0x74
retlw 0x64
retlw 0x54
retlw 0x44
retlw 0xA7
retlw 0xB7
retlw 0x87
retlw 0x97
retlw 0xE7
retlw 0xF7
retlw 0xC7
retlw 0xD7
retlw 0x26
retlw 0x36
retlw 0x06
retlw 0x16
retlw 0x66
retlw 0x76
retlw 0x46
retlw 0x56
retlw 0xD9
retlw 0xC9
retlw 0xF9
retlw 0xE9
retlw 0x99
retlw 0x89
retlw 0xB9
retlw 0xA9
retlw 0x58
retlw 0x48
retlw 0x78
retlw 0x68
retlw 0x18
retlw 0x08
retlw 0x38
retlw 0x28
retlw 0xCB
retlw 0xDB
retlw 0xEB
retlw 0xFB
retlw 0x8B
retlw 0x9B
retlw 0xAB
retlw 0xBB
retlw 0x4A
retlw 0x5A
retlw 0x6A
retlw 0x7A
retlw 0x0A
retlw 0x1A
retlw 0x2A
retlw 0x3A
retlw 0xFD
retlw 0xED
retlw 0xDD
retlw 0xCD
retlw 0xBD
retlw 0xAD
retlw 0x9D
retlw 0x8D
retlw 0x7C
retlw 0x6C
retlw 0x5C
retlw 0x4C
retlw 0x3C
retlw 0x2C
retlw 0x1C
retlw 0x0C
retlw 0xEF
retlw 0xFF
retlw 0xCF
retlw 0xDF
retlw 0xAF
retlw 0xBF
retlw 0x8F
retlw 0x9F
retlw 0x6E
retlw 0x7E
retlw 0x4E
retlw 0x5E
retlw 0x2E
retlw 0x3E
retlw 0x0E
retlw 0x1E