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