11 lines
370 B
C
11 lines
370 B
C
#include "stdint.h"
|
|
|
|
typedef unsigned short WORD;
|
|
typedef unsigned char byte;
|
|
|
|
|
|
unsigned int get_crc_ccitt(unsigned int crc, unsigned int *buf, unsigned long size );
|
|
unsigned int get_crc_16(unsigned int crc,unsigned int *buf,unsigned long size );
|
|
unsigned int get_crc_16b(unsigned int crc,unsigned int *buf,unsigned long size );
|
|
int get_crc16(uint16_t *buf, int size );
|