/*CAN.h 7/24/03 Nathan Z. Gustavson ngustavson@emacinc.com Emac.inc www.emacinc.com struct types and definitions for pcde12 CAN programming */ #ifndef CANH #define CANH #include #include #define CAN_MSG_LENGTH 8 typedef struct E12Can_Message{ // flags, indicating or controlling special message properties __u8 flags; __u16 id; //< ID number __u8 length; //< number of bytes in the CAN message __u8 data[CAN_MSG_LENGTH]; //< data, 0...8 bytes } E12Can_Message; typedef void (*CANHandler)(E12Can_Message *,void *); #endif