For Hepta-Sat Lite

HeptaXbee.h

Committer:
heptasat2021
Date:
2021-08-17
Revision:
13:59679840fb53
Parent:
12:94abebd3d020

File content as of revision 13:59679840fb53:

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

//Xbee Series2

class HeptaXbee
{
public:
    Serial xbee;
    int comrate;
    int rcmd;
    int cmdflag;
    HeptaXbee(
        PinName tx,
        PinName rx,
        int brate
    );
    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