Name

crc16 — compute the CRC-16 for the data buffer

Synopsis

u16 crc16 (u16 crc,
 u8 const * buffer,
 size_t len);
 

Arguments

u16 crc

previous CRC value

u8 const * buffer

data pointer

size_t len

number of bytes in the buffer

Description

Returns the updated CRC value.