car chassis

Dependencies:   Servo mbed-rtos mbed

can.hpp

Committer:
mariob
Date:
2015-10-13
Revision:
4:7fa7f78cbb92
Parent:
2:7dfc8dd6aab3

File content as of revision 4:7fa7f78cbb92:

#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__