For Hepta-Sat Lite
HeptaXbee.h@0:1e02be589d1f, 2017-07-19 (annotated)
- Committer:
- hepta2ume
- Date:
- Wed Jul 19 07:59:59 2017 +0000
- Revision:
- 0:1e02be589d1f
- Child:
- 1:c31e4a5db17c
HEPTA_Xbee_0719;
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 | 0:1e02be589d1f | 20 | char data1[],char data2[],char data3[],char data4[],char data5[],char data6[],char data7[],char data8[],char data9[], |
hepta2ume | 0:1e02be589d1f | 21 | int n1,int n2,int n3,int n4,int n5,int n6,int n7,int n8,int n9,int data_num); |
hepta2ume | 0:1e02be589d1f | 22 | void puts( char *s ); |
hepta2ume | 0:1e02be589d1f | 23 | void printf(char *format, ... ); |
hepta2ume | 0:1e02be589d1f | 24 | private: |
hepta2ume | 0:1e02be589d1f | 25 | }; |
hepta2ume | 0:1e02be589d1f | 26 | #endif |