A class for using MU2.

Dependents:   EM_Mission FM_integration_copy FM_integration_off FM_integration

MU2Class.h

Committer:
ATKINZ117
Date:
2013-07-10
Revision:
3:9f98138ed0c4
Parent:
2:2297b491e452
Child:
4:a7d413a2889d

File content as of revision 3:9f98138ed0c4:

#ifndef MU2_CLASS
#define MU2_CLASS

#include "mbed.h"

class MU2Class{
public:
    MU2Class(PinName tx,PinName rx); //define pins for communication from CanSat
    void send(char Send_Message[]); //a method for sending data from CanSat to PC
    //void send(int Send_Message[]); //overload the send(char)method

private:
    uint8_t Store_Str(char data_str[], int index, char Message[]);
    /*uint8_t Store_Int(int data_int[], int index, int Message[]);*/
    PinName _tx; //tx pin name which connected to mbed
    PinName _rx; //rx pin name which connected to mbed
};

#endif