Template for the ELEC1620 End of year exam

Dependencies:   mbed

StreamOut/Message.cpp

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

File content as of revision 0:54721f063ac8:

#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;
}