A class for using MU2.

Dependents:   EM_Mission FM_integration_copy FM_integration_off FM_integration

Committer:
ATKINZ117
Date:
Tue Jul 02 13:13:48 2013 +0000
Revision:
0:6c7ba361f738
Child:
1:c60752b4acb9
This is the first ver. of MU2Class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ATKINZ117 0:6c7ba361f738 1 #ifndef MU2_CLASS
ATKINZ117 0:6c7ba361f738 2 #define MU2_CLASS
ATKINZ117 0:6c7ba361f738 3
ATKINZ117 0:6c7ba361f738 4 #include "mbed.h"
ATKINZ117 0:6c7ba361f738 5
ATKINZ117 0:6c7ba361f738 6 class MU2Class{
ATKINZ117 0:6c7ba361f738 7 public:
ATKINZ117 0:6c7ba361f738 8 MU2Class(PinName tx,PinName rx); //define pins for communication from CanSat
ATKINZ117 0:6c7ba361f738 9 void send(const char Send_Message[]); //a method for sending data from CanSat to PC
ATKINZ117 0:6c7ba361f738 10
ATKINZ117 0:6c7ba361f738 11 private:
ATKINZ117 0:6c7ba361f738 12 uint8_t Store_Str(char data_str[], int index, char Message[]);
ATKINZ117 0:6c7ba361f738 13 PinName _tx; //tx pin name which connected to mbed
ATKINZ117 0:6c7ba361f738 14 PinName _rx; //rx pin name which connected to mbed
ATKINZ117 0:6c7ba361f738 15 };
ATKINZ117 0:6c7ba361f738 16
ATKINZ117 0:6c7ba361f738 17 #endif