HeptaXbee Library
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more
Fork of HeptaXbee by
HeptaXbee.h@7:d07155a73b24, 2017-09-05 (annotated)
- Committer:
- HEPTA
- Date:
- Tue Sep 05 12:47:16 2017 +0000
- Revision:
- 7:d07155a73b24
- Parent:
- 5:c441a88f6952
- Child:
- 9:96ed36bbc9dd
Hepta Xbee
Who changed what in which revision?
User | Revision | Line number | New 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); |
hepta2ume | 0:1e02be589d1f | 18 | void xbee_recieve(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 ); |
hepta2ume | 0:1e02be589d1f | 25 | void printf(char *format, ... ); |
HEPTA | 7:d07155a73b24 | 26 | void putc(char data); |
hepta2ume | 2:031c35ada7e6 | 27 | char getc(); |
HEPTA | 7:d07155a73b24 | 28 | |
hepta2ume | 0:1e02be589d1f | 29 | private: |
hepta2ume | 0:1e02be589d1f | 30 | }; |
hepta2ume | 0:1e02be589d1f | 31 | #endif |