Implementation of CRC16 using polynomial 0x8005 = X^16 + X^15 + X^2 + 1

Dependents:   Manchester_Transmitter Manchester_Receiver ManchesterUART_Transmitter ManchesterUART_Receiver

Fork of CRC16 by Emilie Laverge

Revision:
0:585ead300cab
Child:
1:352debdce7b3
diff -r 000000000000 -r 585ead300cab CRC16.h
--- /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