20 lines
549 B
C
20 lines
549 B
C
|
|
||
|
#ifndef __CRC8_H__
|
||
|
#define __CRC8_H__
|
||
|
|
||
|
/*
|
||
|
===============================================================================
|
||
|
|
||
|
Calculates a checksum for a block of data
|
||
|
using the CRC-8.
|
||
|
|
||
|
===============================================================================
|
||
|
*/
|
||
|
|
||
|
void CRC8_InitChecksum( unsigned char &crcvalue );
|
||
|
void CRC8_UpdateChecksum( unsigned char &crcvalue, const void *data, int length );
|
||
|
void CRC8_FinishChecksum( unsigned char &crcvalue );
|
||
|
unsigned char CRC8_BlockChecksum( const void *data, int length );
|
||
|
|
||
|
#endif /* !__CRC8_H__ */
|