For Hepta-Sat Lite
HeptaXbee.h@9:96ed36bbc9dd, 2018-08-08 (annotated)
- Committer:
- HEPTA
- Date:
- Wed Aug 08 11:01:54 2018 +0000
- Revision:
- 9:96ed36bbc9dd
- Parent:
- 7:d07155a73b24
- Child:
- 12:94abebd3d020
HeptaXbee library
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); |
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 ); |
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 |