For Hepta-Sat Lite

HeptaXbee.h

Committer:
HeptaSatTraining2019
Date:
2019-08-21
Revision:
12:94abebd3d020
Parent:
9:96ed36bbc9dd
Child:
13:59679840fb53

File content as of revision 12:94abebd3d020:

#ifndef MBED_HEPTAXBEE_H
#define MBED_HEPTAXBEE_H
#include "mbed.h"

//Xbee Series2

class HeptaXbee
{
public:
    Serial xbee;
    int rcmd;
    int cmdflag;
    HeptaXbee(
        PinName tx,
        PinName rx
    );
    void baud(int rate);
    void xbee_receive(int *xrcmd, int *xcmdflag);
    void initialize();
    void commandget();
    void xbee_transmit(char dataA[],char dataB[],char dataC[],char dataD[],char dataE[],
                       char dataF[],char dataG[],char dataH[],char dataI[],char dataJ[],
                       char dataK[],char dataL[],char dataM[],char dataN[]);
    void puts( char *s );
    void scanf(char *format, ... );
    void printf(char *format, ... );
    void putc(char data);
    char getc();

private:
};
#endif