xbee library

Dependents:   HEPTA_COM

Committer:
HeptaSatTraining2019
Date:
Wed Aug 21 11:18:56 2019 +0000
Revision:
12:94abebd3d020
Parent:
9:96ed36bbc9dd
xbee library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hepta2ume 0:1e02be589d1f 1 #ifndef MBED_HEPTAXBEE_H
hepta2ume 0:1e02be589d1f 2 #define MBED_HEPTAXBEE_H
hepta2ume 0:1e02be589d1f 3 #include "mbed.h"
hepta2ume 0:1e02be589d1f 4
hepta2ume 0:1e02be589d1f 5 //Xbee Series2
hepta2ume 0:1e02be589d1f 6
umeume 4:ede5c519e238 7 class HeptaXbee
umeume 4:ede5c519e238 8 {
hepta2ume 0:1e02be589d1f 9 public:
hepta2ume 0:1e02be589d1f 10 Serial xbee;
hepta2ume 0:1e02be589d1f 11 int rcmd;
hepta2ume 0:1e02be589d1f 12 int cmdflag;
hepta2ume 0:1e02be589d1f 13 HeptaXbee(
hepta2ume 0:1e02be589d1f 14 PinName tx,
umeume 4:ede5c519e238 15 PinName rx
hepta2ume 0:1e02be589d1f 16 );
HEPTA 7:d07155a73b24 17 void baud(int rate);
HEPTA 9:96ed36bbc9dd 18 void xbee_receive(int *xrcmd, int *xcmdflag);
hepta2ume 0:1e02be589d1f 19 void initialize();
hepta2ume 0:1e02be589d1f 20 void commandget();
HEPTA 7:d07155a73b24 21 void xbee_transmit(char dataA[],char dataB[],char dataC[],char dataD[],char dataE[],
HEPTA 7:d07155a73b24 22 char dataF[],char dataG[],char dataH[],char dataI[],char dataJ[],
HEPTA 7:d07155a73b24 23 char dataK[],char dataL[],char dataM[],char dataN[]);
hepta2ume 0:1e02be589d1f 24 void puts( char *s );
HeptaSatTraining2019 12:94abebd3d020 25 void scanf(char *format, ... );
hepta2ume 0:1e02be589d1f 26 void printf(char *format, ... );
HEPTA 7:d07155a73b24 27 void putc(char data);
hepta2ume 2:031c35ada7e6 28 char getc();
HEPTA 7:d07155a73b24 29
hepta2ume 0:1e02be589d1f 30 private:
hepta2ume 0:1e02be589d1f 31 };
hepta2ume 0:1e02be589d1f 32 #endif