00001 /* 00002 * Glacsweb crc.c 00003 * Copyright (C) 2003-2004 The University of Southampton 00004 */ 00005 00006 #include "types.h" 00007 00008 typedef uint16_t Crc16; 00009 00010 #define CRC_BUFFER_SIZE (1 + 2 + 512) 00011 00012 void CRC16Init(); 00013 Crc16 CRC16Calc(Crc16 crc, BYTE const* src, int cnt); 00014 int CRC16Check(Crc16 checksum, BYTE * buffer); 00015 void CRC16Reset();