fsfw/globalfunctions/crc_ccitt.h
Ulrich Mohr 90cba58ded Putting the Cyclic back into CRC
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.
2020-04-06 12:56:32 +02:00

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_ */