equal
deleted
inserted
replaced
29 UNS32 w; |
29 UNS32 w; |
30 }; |
30 }; |
31 */ |
31 */ |
32 |
32 |
33 typedef struct { |
33 typedef struct { |
34 UNS32 w; // 32 bits |
34 UNS32 w; /* 32 bits */ |
35 } SHORT_CAN; |
35 } SHORT_CAN; |
36 |
36 |
37 |
37 |
38 /** Can message structure */ |
38 /** Can message structure */ |
39 typedef struct { |
39 typedef struct { |
40 SHORT_CAN cob_id; // l'ID du mesg |
40 SHORT_CAN cob_id; /* l'ID du mesg */ |
41 UNS8 rtr; // remote transmission request. 0 if not rtr, |
41 UNS8 rtr; /* remote transmission request. 0 if not rtr, |
42 // 1 for a rtr message |
42 1 for a rtr message */ |
43 UNS8 len; // message length (0 to 8) |
43 UNS8 len; /* message length (0 to 8) */ |
44 UNS8 data[8]; // data |
44 UNS8 data[8]; /* data */ |
45 } Message; |
45 } Message; |
46 |
46 |
47 |
47 |
48 typedef UNS8 (*canSend_t)(Message *); |
48 typedef UNS8 (*canSend_t)(Message *); |
49 |
49 |
50 #endif // __can_h__ |
50 #endif /* __can_h__ */ |