Template for the ELEC1620 End of year exam

Dependencies:   mbed

Revision:
0:54721f063ac8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/StreamOut/Message.h	Fri Mar 22 13:11:07 2019 +0000
@@ -0,0 +1,20 @@
+#ifndef LIB_MESSAGE_H_
+#define LIB_MESSAGE_H_
+
+#include <mbed.h>
+
+class Message{
+public:
+  Message(char code, unsigned int data);
+  Message();
+  ~Message();
+  void set(char code, unsigned int data);
+  char get_code();
+  unsigned int get_data();
+private:
+  char _code;
+  unsigned int _data;
+};
+
+#endif
+