00001 /*************************************************************************** 00002 general.h - description 00003 ------------------- 00004 begin : Fri May 17 2002 00005 copyright : (C) 2002 by Raphael Zulliger 00006 email : zulli@hsr.ch 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This library is Copyright (c) Raphael Zulliger <zulli@gmx.net>. * 00012 * It is licensed under the GNU Library General Public License (LGPL). * 00013 * * 00014 ***************************************************************************/ 00015 00016 00026 #ifndef __general_h__ 00027 #define __general_h__ 00028 00029 #include <def.h> 00030 00031 00032 // Typedefs and datatypes used to store incomming can-messages. code was 00033 // taken from arbracan (arbracan.sourceforge.net) 00034 00037 typedef union td_u_short { 00038 struct { BYTE b0,b1; } b; 00039 WORD w; 00040 } SHORT; 00041 00045 typedef struct td_s_message { 00048 SHORT cob_id; 00051 BYTE rtr; 00055 BYTE len; 00058 BYTE data[8]; 00059 } Message; 00060 00061 00066 #define RX_CAN_BUFFER_SIZE 5 00067 00072 #define MAX_CAN_MESSAGE_ANALYSE 5 00073 00081 void proccessRxCanMessages( void ); 00082 00083 #endif // __general_h__