Projectlab Elektronica-ICT KULeuven

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

werking.pdf

Revision:
0:ae3af7d18c4a
Child:
1:635e76c52151
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Frame.h	Fri Mar 14 19:41:14 2014 +0000
@@ -0,0 +1,25 @@
+#ifndef Frame_H
+#define Frame_H
+class  Frame
+{
+private:
+    int IdDestinationMbed;
+    int temperature;
+    int pWMDutycycle;
+    int tune;
+    int lengthIDs;
+    char* IDs;
+    char* encode;
+public:
+    Frame(int IdDestinationMbed,
+        int temperature,
+        int pWMDutycycle,
+        int tune,
+        int lengthIDs,
+        char* IDs,
+        char* encode);
+    int encode(char* encode);
+    int decode(char* frame);
+    int MakeCRC(char LEN, char IDD, char TMP0, char TMP1, char PWM, char* data, int lenghtData);
+};
+#endif
\ No newline at end of file