blob: 4bb2ae0ed8c6f42c247ff85fb1ed48a30ed22ba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* sysync_crc16.h
* CRC 16 checksumming functions
*
* Copyright (c) 2002-2009 by Synthesis AG (www.synthesis.ch)
*
*/
/* compute 16 bit CCITT crc */
#include "generic_types.h"
namespace sysync {
/* add next byte to CRC */
uInt16 sysync_crc16(uInt16 crc,uInt8 b);
// add next block of bytes to CRC
uInt16 sysync_crc16_block(const void* dataP, uInt32 len, uInt16 crc);
} // namespace sysync
/* eof */
|