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.cpp	Fri Mar 22 13:11:07 2019 +0000
@@ -0,0 +1,31 @@
+#include "Message.h"
+
+Message::Message(char code, unsigned int data):
+  _code(code),
+  _data(data)
+{
+
+}
+
+Message::Message():
+  _code(0x0F),
+  _data(0x00)
+{
+
+}
+
+Message::~Message(){}
+
+void Message::set(char code, unsigned int data){
+  _code = code;
+  _data = data;
+}
+
+char Message::get_code(){
+  return _code;
+}
+
+unsigned int Message::get_data(){
+  return _data;
+}
+