DelegateMQ
Loading...
Searching...
No Matches
crc16.h File Reference

Header-only 16-bit CRC-CCITT implementation (Polynomial 0x1021). More...

Go to the source code of this file.

Macros

#define USE_CRC_TABLE
 

Functions

unsigned short Crc16CalcBlock (unsigned char *crc_msg, int len, unsigned short crc=0xFFFF)
 Calculates a 16-bit CRC using the table-based method.
 

Detailed Description

Header-only 16-bit CRC-CCITT implementation (Polynomial 0x1021).

Macro Definition Documentation

◆ USE_CRC_TABLE

#define USE_CRC_TABLE

Function Documentation

◆ Crc16CalcBlock()

unsigned short Crc16CalcBlock ( unsigned char * crc_msg,
int len,
unsigned short crc = 0xFFFF )
inline

Calculates a 16-bit CRC using the table-based method.