For Hepta-Sat Lite
HeptaXbee.h@5:c441a88f6952, 2017-09-04 (annotated)
- Committer:
- HEPTA
- Date:
- Mon Sep 04 16:28:12 2017 +0000
- Revision:
- 5:c441a88f6952
- Parent:
- 4:ede5c519e238
- Child:
- 7:d07155a73b24
HeptaXbee
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 | ); |
hepta2ume | 0:1e02be589d1f | 17 | void xbee_recieve(int *xrcmd, int *xcmdflag); |
hepta2ume | 0:1e02be589d1f | 18 | void initialize(); |
hepta2ume | 0:1e02be589d1f | 19 | void commandget(); |
hepta2ume | 0:1e02be589d1f | 20 | void xbee_transmit(char* output_data,size_t output_n, |
umeume | 4:ede5c519e238 | 21 | char data1[],char data2[],char data3[],char data4[],char data5[],char data6[],char data7[],char data8[],char data9[],char data10[],char data11[],char data12[],char data13[],char data14[], |
umeume | 4:ede5c519e238 | 22 | int n1,int n2,int n3,int n4,int n5,int n6,int n7,int n8,int n9,int n10,int n11,int n12,int n13,int n14,int data_num); |
hepta2ume | 0:1e02be589d1f | 23 | void puts( char *s ); |
hepta2ume | 0:1e02be589d1f | 24 | void printf(char *format, ... ); |
HEPTA | 5:c441a88f6952 | 25 | void putc(char cc); |
hepta2ume | 2:031c35ada7e6 | 26 | char getc(); |
umeume | 4:ede5c519e238 | 27 | // void baud(void); |
hepta2ume | 0:1e02be589d1f | 28 | private: |
hepta2ume | 0:1e02be589d1f | 29 | }; |
hepta2ume | 0:1e02be589d1f | 30 | #endif |