Mario Bambagini / Mbed 2 deprecated car_chassis

Dependencies:   Servo mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers can.hpp Source File

can.hpp

00001 #ifndef __CAN_H__
00002 #define __CAN_H__
00003 
00004 #include "common_types.h"
00005 
00006 //CAN driver initialization
00007 void init_can();
00008 
00009 //thread of the CAN driver which receives and transmits messages periodically
00010 void thread_can(void const *args);
00011 
00012 //return if a message hasn't been received for longer than
00013 //CAN_MISSING_DETECTION
00014 bool can_msg_is_missing(uint8 msg_id);
00015 
00016 #endif //__CAN_H__