for CAN communication between mbed
Dependents: EM_Logger EM_Mission
myCAN.h
- Committer:
- YSB
- Date:
- 2013-08-03
- Revision:
- 2:e0e7269bf1f0
- Parent:
- 1:0732a5dec208
File content as of revision 2:e0e7269bf1f0:
#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[8][8]; CANMessage msg; char time[9]; int NoS; char latitude[10]; char longitude[11]; char hroll; char lroll; int roll; int temp; int pres; void rxHandler(void); }; #endif