Just4Trionic - CAN and BDM FLASH programmer for Saab cars
Fork of Just4Trionic by
Diff: canutils.h
- Revision:
- 1:d5452e398b76
- Child:
- 3:92dae9083c83
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/canutils.h Tue Sep 14 21:02:04 2010 +0000 @@ -0,0 +1,30 @@ +/******************************************************************************* + +canutils.h - information and definitions needed for the CAN bus +(c) 2010 by Sophie Dexter + +******************************************************************************** + +WARNING: Use at your own risk, sadly this software comes with no guarantees. +This software is provided 'free' and in good faith, but the author does not +accept liability for any damage arising from its use. + +*******************************************************************************/ + +#ifndef __CANUTILS_H__ +#define __CANUTILS_H__ + +#include "CAN.h" +#include "mbed.h" + +#include "common.h" + +extern void can_open(); +extern void can_close(); +extern uint8_t can_set_speed(uint32_t speed); +extern void show_can_message(); + +extern bool can_send_timeout (uint32_t id, char *frame, uint8_t len, uint16_t timeout); +extern bool can_wait_timeout (uint32_t id, char *frame, uint8_t len, uint16_t timeout); + +#endif \ No newline at end of file