For Hepta-Sat Lite
HeptaXbee.h@2:031c35ada7e6, 2017-08-05 (annotated)
- Committer:
- hepta2ume
- Date:
- Sat Aug 05 13:36:13 2017 +0000
- Revision:
- 2:031c35ada7e6
- Parent:
- 1:c31e4a5db17c
- Child:
- 4:ede5c519e238
test
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 | |
hepta2ume | 0:1e02be589d1f | 7 | class HeptaXbee{ |
hepta2ume | 0:1e02be589d1f | 8 | public: |
hepta2ume | 0:1e02be589d1f | 9 | Serial xbee; |
hepta2ume | 0:1e02be589d1f | 10 | int rcmd; |
hepta2ume | 0:1e02be589d1f | 11 | int cmdflag; |
hepta2ume | 0:1e02be589d1f | 12 | HeptaXbee( |
hepta2ume | 0:1e02be589d1f | 13 | PinName tx, |
hepta2ume | 0:1e02be589d1f | 14 | PinName rx |
hepta2ume | 0:1e02be589d1f | 15 | ); |
hepta2ume | 0:1e02be589d1f | 16 | void xbee_recieve(int *xrcmd, int *xcmdflag); |
hepta2ume | 0:1e02be589d1f | 17 | void initialize(); |
hepta2ume | 0:1e02be589d1f | 18 | void commandget(); |
hepta2ume | 0:1e02be589d1f | 19 | void xbee_transmit(char* output_data,size_t output_n, |
hepta2ume | 2:031c35ada7e6 | 20 | 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[], |
hepta2ume | 2:031c35ada7e6 | 21 | 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 | 22 | void puts( char *s ); |
hepta2ume | 0:1e02be589d1f | 23 | void printf(char *format, ... ); |
hepta2ume | 2:031c35ada7e6 | 24 | char getc(); |
hepta2ume | 0:1e02be589d1f | 25 | private: |
hepta2ume | 0:1e02be589d1f | 26 | }; |
hepta2ume | 0:1e02be589d1f | 27 | #endif |