added a parameter to the crc function to supply it with a starting value for the crc, so one can calculate a crc over mutiple separate parts.
10 lines
181 B
C
10 lines
181 B
C
#ifndef CRC_CCITT_H_
|
|
#define CRC_CCITT_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
uint16_t Calculate_CRC(uint8_t const input[], uint32_t length, uint16_t startingCrc = 0xffff);
|
|
|
|
|
|
#endif /* CRC_H_ */
|