car chassis

Dependencies:   Servo mbed-rtos mbed

can.hpp

Committer:
mariob
Date:
2015-10-08
Revision:
2:7dfc8dd6aab3
Parent:
1:79b1ee0f97ef

File content as of revision 2:7dfc8dd6aab3:

#ifndef __CAN_H__
#define __CAN_H__

#include "common_types.h"

//CAN driver initialization
void init_can();

//thread of the CAN driver which receives and transmits messages periodically
void thread_can(void const *args);

//return if a message hasn't been received for longer than
//CAN_MISSING_DETECTION
bool can_msg_is_missing(uint8 msg_id);

#endif //__CAN_H__