43 typedef struct Crc16Data
State information for the CRC16 algorithm.
Definition: crc16.h:43
uint16_t currentCrc
Current CRC value.
Definition: crc16.h:45
void crc16_init(crc16_data_t *crc16Config)
Initializes the parameters of the crc function, must be called first.
Definition: crc16.c:99
void crc16_update(crc16_data_t *crc16Config, const uint8_t *src, uint32_t lengthInBytes)
A "running" crc calculator that updates the crc value after each call.
Definition: crc16.c:107
void crc16_finalize(crc16_data_t *crc16Config, uint16_t *hash)
Calculates the final crc value, padding with zeros if necessary, must be called last.
Definition: crc16.c:134