crc16_ccitt.h

uint16_t crc16_ccitt_update(uint16_t crc, const unsigned char * buf, msp430_types.h::size_t len)

Update CRC16-CCITT.

Parameters

crc:A start value for the CRC calculation, usually the return value of a previous call to crc16_ccitt.h::crc16_ccitt_calc() or crc16_ccitt.h::crc16_ccitt_update()
buf:Start of the memory area to checksum
len:Number of bytes to checksum

Return values

  • Checksum of the specified memory area based on the given start value
uint16_t crc16_ccitt_calc(const unsigned char * buf, msp430_types.h::size_t len)

Calculate CRC16-CCITT.

Parameters

buf:Start of the memory area to checksum
len:Number of bytes to checksum

Return values

  • Checksum of the specified memory area