For Hepta-Sat Lite

Committer:
umeume
Date:
Wed Aug 23 06:18:34 2017 +0000
Revision:
4:ede5c519e238
Parent:
2:031c35ada7e6
Child:
5:c441a88f6952
test

Who changed what in which revision?

UserRevisionLine numberNew 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
umeume 4:ede5c519e238 7 class HeptaXbee
umeume 4:ede5c519e238 8 {
hepta2ume 0:1e02be589d1f 9 public:
hepta2ume 0:1e02be589d1f 10 Serial xbee;
hepta2ume 0:1e02be589d1f 11 int rcmd;
hepta2ume 0:1e02be589d1f 12 int cmdflag;
hepta2ume 0:1e02be589d1f 13 HeptaXbee(
hepta2ume 0:1e02be589d1f 14 PinName tx,
umeume 4:ede5c519e238 15 PinName rx
hepta2ume 0:1e02be589d1f 16 );
hepta2ume 0:1e02be589d1f 17 void xbee_recieve(int *xrcmd, int *xcmdflag);
hepta2ume 0:1e02be589d1f 18 void initialize();
hepta2ume 0:1e02be589d1f 19 void commandget();
hepta2ume 0:1e02be589d1f 20 void xbee_transmit(char* output_data,size_t output_n,
umeume 4:ede5c519e238 21 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[],
umeume 4:ede5c519e238 22 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);
umeume 4:ede5c519e238 23 /* void xbee_transmit_SD(char* output_data,size_t output_n,
umeume 4:ede5c519e238 24 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[],
umeume 4:ede5c519e238 25 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 26 void puts( char *s );
hepta2ume 0:1e02be589d1f 27 void printf(char *format, ... );
umeume 4:ede5c519e238 28 char putc(char cc);
hepta2ume 2:031c35ada7e6 29 char getc();
umeume 4:ede5c519e238 30 // void baud(void);
hepta2ume 0:1e02be589d1f 31 private:
hepta2ume 0:1e02be589d1f 32 };
hepta2ume 0:1e02be589d1f 33 #endif