5.1.5.4 SYS_Crc16Ccitt Function

Syntax

INLINE uint16_t SYS_Crc16Ccitt(uint16_t initValue, uint8_t byte);

Description

This function calculates the CRC using the CRC-16-CCITT algorithm.

Input Parameters
Parameter NameDescription
initValueCRC initial value
byteNext byte to calculate CRC
Return Type and Values
  • Calculated CRC value