Tamas Titusz Ban
/
ELEC1620_ExamTemplate_2019
Template for the ELEC1620 End of year exam
Diff: StreamOut/Message.h
- Revision:
- 0:54721f063ac8
diff -r 000000000000 -r 54721f063ac8 StreamOut/Message.h --- /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 +