Files
Linux_Drivers/fsbl/lib/crc/crc16.h
sam.xiang 4bc998a131 [fsbl] add fsbl for cv181x/cv180x
Change-Id: I6809bc5016d4bc148f62be2ed3f8e928ec111f19
2023-03-10 20:33:00 +08:00

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_ */