Implementation of CRC16 using polynomial 0x8005 - (X^16 X^15 X^2 1). Blu.
Fork of CRC16 by
Diff: CRC16.h
- Revision:
- 0:585ead300cab
- Child:
- 1:d5df46e8875d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CRC16.h Wed Feb 12 21:34:53 2014 +0000 @@ -0,0 +1,15 @@ +#ifndef CRC16_H +#define CRC16_H + +class CRC16 +{ + private: + const unsigned int SHIFTER = 0x00FF; + unsigned short crc16table[256]; + + public: + unsigned short calculateCRC16(char input[], int lenght); + CRC16(); + ~CRC16(); +}; +#endif \ No newline at end of file