For Hepta-Sat Lite
HeptaXbee.h@13:59679840fb53, 2021-08-17 (annotated)
- Committer:
- heptasat2021
- Date:
- Tue Aug 17 10:50:19 2021 +0000
- Revision:
- 13:59679840fb53
- Parent:
- 12:94abebd3d020
For Hepta-Sat Lite
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; |
heptasat2021 | 13:59679840fb53 | 11 | int comrate; |
hepta2ume | 0:1e02be589d1f | 12 | int rcmd; |
hepta2ume | 0:1e02be589d1f | 13 | int cmdflag; |
hepta2ume | 0:1e02be589d1f | 14 | HeptaXbee( |
hepta2ume | 0:1e02be589d1f | 15 | PinName tx, |
heptasat2021 | 13:59679840fb53 | 16 | PinName rx, |
heptasat2021 | 13:59679840fb53 | 17 | int brate |
hepta2ume | 0:1e02be589d1f | 18 | ); |
HEPTA | 7:d07155a73b24 | 19 | void baud(int rate); |
HEPTA | 9:96ed36bbc9dd | 20 | void xbee_receive(int *xrcmd, int *xcmdflag); |
hepta2ume | 0:1e02be589d1f | 21 | void initialize(); |
hepta2ume | 0:1e02be589d1f | 22 | void commandget(); |
HEPTA | 7:d07155a73b24 | 23 | void xbee_transmit(char dataA[],char dataB[],char dataC[],char dataD[],char dataE[], |
HEPTA | 7:d07155a73b24 | 24 | char dataF[],char dataG[],char dataH[],char dataI[],char dataJ[], |
HEPTA | 7:d07155a73b24 | 25 | char dataK[],char dataL[],char dataM[],char dataN[]); |
hepta2ume | 0:1e02be589d1f | 26 | void puts( char *s ); |
HeptaSatTraining2019 | 12:94abebd3d020 | 27 | void scanf(char *format, ... ); |
hepta2ume | 0:1e02be589d1f | 28 | void printf(char *format, ... ); |
HEPTA | 7:d07155a73b24 | 29 | void putc(char data); |
hepta2ume | 2:031c35ada7e6 | 30 | char getc(); |
HEPTA | 7:d07155a73b24 | 31 | |
hepta2ume | 0:1e02be589d1f | 32 | private: |
hepta2ume | 0:1e02be589d1f | 33 | }; |
hepta2ume | 0:1e02be589d1f | 34 | #endif |