Sophie Dexter
/
Just4Trionic
Just4Trionic - CAN and BDM FLASH programmer for Saab cars
Diff: canutils.h
- Revision:
- 4:682d96ff6d79
- Parent:
- 3:92dae9083c83
--- a/canutils.h Tue Jun 07 12:23:28 2011 +0000 +++ b/canutils.h Wed Sep 11 11:55:51 2013 +0000 @@ -1,7 +1,7 @@ /******************************************************************************* canutils.h - information and definitions needed for the CAN bus -(c) 2010 by Sophie Dexter +(c) 2010, 2012 by Sophie Dexter ******************************************************************************** @@ -19,10 +19,24 @@ #include "common.h" +#define CANsuppliedCLK 24000000 + +extern void can_disable(uint8_t chan); +extern void can_enable(uint8_t chan); +extern void can_configure(uint8_t chan, uint32_t baud, bool listen); +extern void can_add_filter(uint8_t chan, uint32_t id); +extern void can_reset_filters(); +extern void can_use_filters(bool active); + extern void can_open(); extern void can_close(); +extern void can_monitor(); +extern void can_active(); extern uint8_t can_set_speed(uint32_t speed); extern void show_can_message(); +extern void show_T5can_message(); +extern void show_T7can_message(); +extern void show_T8can_message(); extern void silent_can_message(); extern bool can_send_timeout (uint32_t id, char *frame, uint8_t len, uint16_t timeout);