A class for using MU2.

Dependents:   EM_Mission FM_integration_copy FM_integration_off FM_integration

Committer:
ATKINZ117
Date:
Sat Jul 06 07:29:39 2013 +0000
Revision:
2:2297b491e452
Parent:
1:c60752b4acb9
Child:
3:9f98138ed0c4
changed how to communicate via serial;

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 2:2297b491e452 10 void send(int Send_Message[]); //overload the send(char)method
ATKINZ117 0:6c7ba361f738 11
ATKINZ117 0:6c7ba361f738 12 private:
ATKINZ117 0:6c7ba361f738 13 uint8_t Store_Str(char data_str[], int index, char Message[]);
ATKINZ117 2:2297b491e452 14 /*uint8_t Store_Int(int data_int[], int index, int Message[]);*/
ATKINZ117 0:6c7ba361f738 15 PinName _tx; //tx pin name which connected to mbed
ATKINZ117 0:6c7ba361f738 16 PinName _rx; //rx pin name which connected to mbed
ATKINZ117 0:6c7ba361f738 17 };
ATKINZ117 0:6c7ba361f738 18
ATKINZ117 0:6c7ba361f738 19 #endif