#include "crc16.h"Defines | |
| #define | ByteCRC16(v, crc) (unsigned short)((crc << 8) ^ ccitt_16Table[((crc >> 8) ^ (v)) & 255]) |
Functions | |
| unsigned short | CRCCCITT (unsigned char *data, unsigned int length, unsigned short seed, unsigned short final) |
| unsigned short | crc16_calc (unsigned char *ptr, unsigned cnt, CRC16 crc) |
| CRC16 | CalcCRC16Words (unsigned int count, short *buffer) |
Variables | |
| static unsigned short | crc_table [256] |
| unsigned short | Crc16 [] |
| const CRC16 | ccitt_16Table [] |
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
Initial value: {
0x0000, 0x1081, 0x2102, 0x3183, 0x4204, 0x5285, 0x6306, 0x7387,
0x8408, 0x9489, 0xa50a, 0xb58b, 0xc60c, 0xd68d, 0xe70e, 0xf78f
}
|
|
|
|
1.4.1