crc16.h 320 B

1234567891011121314
  1. #ifndef LIBS_CRC_H
  2. #define LIBS_CRC_H
  3. /**
  4. * crc16 - compute the CRC-16 for the data buffer
  5. * @crc: previous CRC value
  6. * @buffer: data pointer
  7. * @len: number of bytes in the buffer
  8. *
  9. * Returns the updated CRC value.
  10. */
  11. unsigned short crc16(unsigned short crc, unsigned char const *buffer, int len);
  12. #endif