Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed PowerControl SDFileSystem
Fork of HeptaBattery_SDFilesystem_Q by
hepta_sat/HeptaXbee.h@0:9eb94b338772, 2016-12-09 (annotated)
- Committer:
- tomoya123
- Date:
- Fri Dec 09 04:53:49 2016 +0000
- Revision:
- 0:9eb94b338772
Battery and SDcard Q
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tomoya123 | 0:9eb94b338772 | 1 | #ifndef MBED_HEPTAXBEE_H |
| tomoya123 | 0:9eb94b338772 | 2 | #define MBED_HEPTAXBEE_H |
| tomoya123 | 0:9eb94b338772 | 3 | #include "mbed.h" |
| tomoya123 | 0:9eb94b338772 | 4 | |
| tomoya123 | 0:9eb94b338772 | 5 | //Xbee Series2 |
| tomoya123 | 0:9eb94b338772 | 6 | |
| tomoya123 | 0:9eb94b338772 | 7 | class HeptaXbee{ |
| tomoya123 | 0:9eb94b338772 | 8 | public: |
| tomoya123 | 0:9eb94b338772 | 9 | Serial xbee; |
| tomoya123 | 0:9eb94b338772 | 10 | int rcmd; |
| tomoya123 | 0:9eb94b338772 | 11 | int cmdflag; |
| tomoya123 | 0:9eb94b338772 | 12 | HeptaXbee( |
| tomoya123 | 0:9eb94b338772 | 13 | PinName tx, |
| tomoya123 | 0:9eb94b338772 | 14 | PinName rx |
| tomoya123 | 0:9eb94b338772 | 15 | ); |
| tomoya123 | 0:9eb94b338772 | 16 | void baud(int rate); |
| tomoya123 | 0:9eb94b338772 | 17 | void xbee_recieve(int *xrcmd, int *xcmdflag); |
| tomoya123 | 0:9eb94b338772 | 18 | void initialize(); |
| tomoya123 | 0:9eb94b338772 | 19 | void commandget(); |
| tomoya123 | 0:9eb94b338772 | 20 | void putc(char data); |
| tomoya123 | 0:9eb94b338772 | 21 | void xbee_transmit(char* output_data,size_t output_n, |
| tomoya123 | 0:9eb94b338772 | 22 | char data1[],char data2[],char data3[],char data4[],char data5[],char data6[],char data7[],char data8[],char data9[], |
| tomoya123 | 0:9eb94b338772 | 23 | int n1,int n2,int n3,int n4,int n5,int n6,int n7,int n8,int n9); |
| tomoya123 | 0:9eb94b338772 | 24 | void puts( char *s ); |
| tomoya123 | 0:9eb94b338772 | 25 | void printf(char *format, ... ); |
| tomoya123 | 0:9eb94b338772 | 26 | private: |
| tomoya123 | 0:9eb94b338772 | 27 | }; |
| tomoya123 | 0:9eb94b338772 | 28 | #endif |
