1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <stdint.h> #ifndef _IOE_CAN_GLOBAL_ #define _IOE_CAN_GLOBAL_ typedef struct { uint16_t id; uint8_t length; uint8_t data[8]; } CanFrame; typedef struct { CanFrame **buffer; void *udata; } Can; void can_send(Can *can, CanFrame *frame); #endif /* _IOE_CAN_GLOBAL_ */