commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
11 lines
313 B
C
11 lines
313 B
C
#ifndef _CRC16_H_
|
|
#define _CRC16_H_
|
|
|
|
/* 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */
|
|
uint16_t crc16_ccitt(uint16_t crc_start, const void *s, int len);
|
|
uint16_t crc16_pacing(uint16_t crc_start, uint32_t *buf, int len);
|
|
|
|
uint32_t crc16_ccitt_with_tag(const void *buf, int len);
|
|
|
|
#endif /* _CRC16_H_ */
|