for CAN communication between mbed
Dependents: EM_Logger EM_Mission
myCAN.h
- Committer:
- YSB
- Date:
- 2013-08-02
- Revision:
- 1:0732a5dec208
- Parent:
- 0:89073e0112db
- Child:
- 2:e0e7269bf1f0
File content as of revision 1:0732a5dec208:
#ifndef MBED_MYCAN_H #define MBED_MYCAN_h #include "mbed.h" class myCAN: public CAN{ public: myCAN(PinName rd,PinName td); char* get_time(void); char* get_latitude(void); char* get_longitude(void); int get_NoS(void); float get_temp(void); int get_pres(void); int get_roll(void); void make_logger_senddata(char* time,int NoS,char* latitude,char* longitude,int roll,int temp,int pres); void make_mission_senddata(void); void send(char user); private: char CANdata[9][8]; CANMessage msg; char time[9]; //= {'0','0',':','0','0',':','0','0','\0'}; int NoS; char latitude[10]; char longitude[11]; char hroll; char lroll; int roll; int temp; int pres; void rxHandler(void); }; #endif