Template for the ELEC1620 End of year exam

Dependencies:   mbed

StreamOut/Message.h

Committer:
el16ttb
Date:
2019-03-22
Revision:
0:54721f063ac8

File content as of revision 0:54721f063ac8:

#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