Go to the source code of this file.
◆ CRC_INIT_VALUE
#define CRC_INIT_VALUE 0xffff |
Definition at line 28 of file crc.c.
◆ CRC_XOR_VALUE
#define CRC_XOR_VALUE 0x0000 |
Definition at line 29 of file crc.c.
◆ CRC_Block()
unsigned short CRC_Block |
( |
byte * |
start, |
|
|
int |
count |
|
) |
| |
◆ CRC_Init()
void CRC_Init |
( |
unsigned short * |
crcvalue | ) |
|
◆ CRC_ProcessByte()
void CRC_ProcessByte |
( |
unsigned short * |
crcvalue, |
|
|
byte |
data |
|
) |
| |
Definition at line 72 of file crc.c.
74 *crcvalue = (*crcvalue << 8) ^
crctable[(*crcvalue >> 8) ^ data];
◆ CRC_Value()
unsigned short CRC_Value |
( |
unsigned short |
crcvalue | ) |
|
Definition at line 77 of file crc.c.
◆ crctable
unsigned short crctable[256] |
|
static |