TELECOMMAND MANAGER V1

Dependencies:   mbed SLCD mbed-rtos

Revision:
1:df31097c8442
Parent:
0:b5b370873460
Child:
2:994e741028c7
--- a/crc.h	Wed Apr 15 10:43:22 2015 +0000
+++ b/crc.h	Sat Jun 06 04:27:40 2015 +0000
@@ -2,12 +2,9 @@
 #define TOPBIT (1 << 15) 
 #define POLYNOMIAL 0x1021
 
-class CRC{
-private:
-    typedef unsigned short int crctype; 
-public:
-    // no need of intializer
-    crctype crcGenerate(const char message[], int nBytes){
+namespace CRC{
+    typedef uint16_t crctype; 
+    crctype crcGenerate(const unsigned char message[], int nBytes){
         crctype remainder = 0xffff;
         int byte;
         char bit;