A class for using MU2.

Dependents:   EM_Mission FM_integration_copy FM_integration_off FM_integration

Committer:
ATKINZ117
Date:
Sat Jul 06 06:19:08 2013 +0000
Revision:
1:c60752b4acb9
Parent:
0:6c7ba361f738
Child:
2:2297b491e452
changed variant type.

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 1:c60752b4acb9 9 void send(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