version 1.8, 2024/10/10 23:55:48
|
version 1.8.2.1, 2024/10/12 16:02:23
|
Line 85 unsigned int crcCalc(unsigned char * __restrict psBuf,
|
Line 85 unsigned int crcCalc(unsigned char * __restrict psBuf,
|
#define crc_16(x, l) crcCalc((x), (l), 16, REVOPTS_REVERTBYTE|REVOPTS_REVERTCRC, 0x0, 0x0) |
#define crc_16(x, l) crcCalc((x), (l), 16, REVOPTS_REVERTBYTE|REVOPTS_REVERTCRC, 0x0, 0x0) |
#define crc_16_ccitt(x, l) crcCalc((x), (l), 161, 0, 0x0, 0x0) |
#define crc_16_ccitt(x, l) crcCalc((x), (l), 161, 0, 0x0, 0x0) |
#define crc_16_xmodem(x, l) crcCalc((x), (l), 162, REVOPTS_REVERTBYTE|REVOPTS_REVERTCRC, 0x0, 0x0) |
#define crc_16_xmodem(x, l) crcCalc((x), (l), 162, REVOPTS_REVERTBYTE|REVOPTS_REVERTCRC, 0x0, 0x0) |
|
#define crc_8(x, l) crcCalc((x), (l), 8, 0, 0x0, 0x0) |
|
|
/* |
/* |
* crc16_ccitt() - Checksum calculation |
* crc16_ccitt() - Checksum calculation |
Line 165 unsigned int crcAdler(unsigned char * __restrict psBuf
|
Line 166 unsigned int crcAdler(unsigned char * __restrict psBuf
|
*/ |
*/ |
#define crcEther(psBuf, bufLen) crcCalc((psBuf), (bufLen), 32, 3, 0xFFFFFFFF, 0xFFFFFFFF) |
#define crcEther(psBuf, bufLen) crcCalc((psBuf), (bufLen), 32, 3, 0xFFFFFFFF, 0xFFFFFFFF) |
|
|
|
/* |
|
* crc8tbl() - CRC8 calculation from table |
|
* |
|
* @crc = Initial crc value |
|
* @buf = Data for calculation |
|
* @len = Length of data |
|
* return: calculated CRC8 |
|
*/ |
|
uint8_t crc8tbl(unsigned char crc, const unsigned char * __restrict buf, unsigned int len); |
/* |
/* |
* crc32tbl() - CRC32 calculation from table |
* crc32tbl() - CRC32 calculation from table |
* |
* |