Implementation of CRC16 using polynomial 0x8005 - (X^16 X^15 X^2 1). Blu.
Fork of CRC16 by
Diff: CRC16.h
- Revision:
- 1:d5df46e8875d
- Parent:
- 0:585ead300cab
diff -r 585ead300cab -r d5df46e8875d CRC16.h --- a/CRC16.h Wed Feb 12 21:34:53 2014 +0000 +++ b/CRC16.h Mon Feb 22 22:44:45 2016 +0000 @@ -3,13 +3,7 @@ class CRC16 { - private: - const unsigned int SHIFTER = 0x00FF; - unsigned short crc16table[256]; - - public: - unsigned short calculateCRC16(char input[], int lenght); - CRC16(); - ~CRC16(); +public: + static unsigned short calculateCRC16(char input[], int lenght); }; #endif \ No newline at end of file