mirror of
https://github.com/dimoniche/solarium.git
synced 2026-01-30 09:53:30 +03:00
21 lines
511 B
Plaintext
21 lines
511 B
Plaintext
#ifndef __CRC16_H__
|
|
#define __CRC16_H__
|
|
|
|
|
|
#define CRC16_SMALL 0 // ðàñ÷åò áåç òàáëèöû
|
|
#define CRC16_LARGE 1 // òàáëè÷íûé ìåòîä (áîëüøå ïî ðàçìåðó êîäà)
|
|
#define CRC16_MODEL_TYPE CRC16_LARGE
|
|
|
|
|
|
#if (CRC16_MODEL_TYPE==CRC16_LARGE)
|
|
extern unsigned short CRC16_large( unsigned char *pBuf, unsigned char ucLength );
|
|
#define CRC16 CRC16_large
|
|
#else
|
|
extern unsigned short CRC16_small( unsigned char *pBuf, unsigned char ucLength );
|
|
#define CRC16 CRC16_small
|
|
#endif
|
|
|
|
|
|
#endif // #ifndef __CRC16_H__
|
|
|