Hepta_template_program
Dependencies: mbed PowerControl SDFileSystem
Fork of Hepta_UplinkData by
hepta_sat/HeptaXbee.h@0:b96079b7d167, 2016-12-13 (annotated)
- Committer:
- tomoya123
- Date:
- Tue Dec 13 08:03:46 2016 +0000
- Revision:
- 0:b96079b7d167
- Child:
- 1:2a3dc618aef7
Xbee Uplinkdata
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tomoya123 | 0:b96079b7d167 | 1 | #ifndef MBED_HEPTAXBEE_H |
tomoya123 | 0:b96079b7d167 | 2 | #define MBED_HEPTAXBEE_H |
tomoya123 | 0:b96079b7d167 | 3 | #include "mbed.h" |
tomoya123 | 0:b96079b7d167 | 4 | |
tomoya123 | 0:b96079b7d167 | 5 | //Xbee Series2 |
tomoya123 | 0:b96079b7d167 | 6 | |
tomoya123 | 0:b96079b7d167 | 7 | class HeptaXbee{ |
tomoya123 | 0:b96079b7d167 | 8 | public: |
tomoya123 | 0:b96079b7d167 | 9 | Serial xbee; |
tomoya123 | 0:b96079b7d167 | 10 | int rcmd; |
tomoya123 | 0:b96079b7d167 | 11 | int cmdflag; |
tomoya123 | 0:b96079b7d167 | 12 | HeptaXbee( |
tomoya123 | 0:b96079b7d167 | 13 | PinName tx, |
tomoya123 | 0:b96079b7d167 | 14 | PinName rx |
tomoya123 | 0:b96079b7d167 | 15 | ); |
tomoya123 | 0:b96079b7d167 | 16 | void baud(int rate); |
tomoya123 | 0:b96079b7d167 | 17 | void xbee_recieve(int *xrcmd, int *xcmdflag); |
tomoya123 | 0:b96079b7d167 | 18 | void initialize(); |
tomoya123 | 0:b96079b7d167 | 19 | void commandget(); |
tomoya123 | 0:b96079b7d167 | 20 | void putc(char data); |
tomoya123 | 0:b96079b7d167 | 21 | void xbee_transmit(char* output_data,size_t output_n, |
tomoya123 | 0:b96079b7d167 | 22 | char data1[],char data2[],char data3[],char data4[],char data5[],char data6[],char data7[],char data8[],char data9[], |
tomoya123 | 0:b96079b7d167 | 23 | int n1,int n2,int n3,int n4,int n5,int n6,int n7,int n8,int n9); |
tomoya123 | 0:b96079b7d167 | 24 | void puts( char *s ); |
tomoya123 | 0:b96079b7d167 | 25 | void printf(char *format, ... ); |
tomoya123 | 0:b96079b7d167 | 26 | void xbee_s_transmit(char* OutputData,size_t output_num, |
tomoya123 | 0:b96079b7d167 | 27 | char dataA[],char dataB[],char dataC[],char dataD[], |
tomoya123 | 0:b96079b7d167 | 28 | int numA,int numB,int numC,int numD); |
tomoya123 | 0:b96079b7d167 | 29 | private: |
tomoya123 | 0:b96079b7d167 | 30 | }; |
tomoya123 | 0:b96079b7d167 | 31 | #endif |