Implementation of CRC16 using polynomial 0x8005 - (X^16 X^15 X^2 1). Blu.

Dependents:   APP4

Fork of CRC16 by Emilie Laverge

Revision:
1:d5df46e8875d
Parent:
0:585ead300cab
--- 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