changeset 528 | 0a30e161d63c |
parent 365 | 9b76e0881beb |
child 561 | f9be4262c68d |
527:7d5c74cc8f91 | 528:0a30e161d63c |
---|---|
18 You should have received a copy of the GNU Lesser General Public |
18 You should have received a copy of the GNU Lesser General Public |
19 License along with this library; if not, write to the Free Software |
19 License along with this library; if not, write to the Free Software |
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 */ |
21 */ |
22 |
22 |
23 /** |
|
24 * @defgroup can CAN Management |
|
25 * @ingroup userapi |
|
26 */ |
|
27 |
|
23 #ifndef __can_h__ |
28 #ifndef __can_h__ |
24 #define __can_h__ |
29 #define __can_h__ |
25 |
30 |
26 #include "applicfg.h" |
31 #include "applicfg.h" |
27 /** Used for the Can message structure */ |
32 /** Used for the Can message structure */ |
35 typedef struct { |
40 typedef struct { |
36 UNS32 w; |
41 UNS32 w; |
37 } SHORT_CAN; |
42 } SHORT_CAN; |
38 */ |
43 */ |
39 |
44 |
40 /** Can message structure */ |
45 /** |
46 * @brief The CAN message structure |
|
47 * @ingroup can |
|
48 * @{ |
|
49 */ |
|
41 typedef struct { |
50 typedef struct { |
42 UNS16 cob_id; /* l'ID du mesg */ |
51 UNS16 cob_id; /* l'ID du mesg */ |
43 UNS8 rtr; /* remote transmission request. 0 if not rtr, |
52 UNS8 rtr; /**< remote transmission request. 0 if not rtr, |
44 1 for a rtr message */ |
53 1 for a rtr message */ |
45 UNS8 len; /* message length (0 to 8) */ |
54 UNS8 len; /**< message length (0 to 8) */ |
46 UNS8 data[8]; /* data */ |
55 UNS8 data[8]; /**< data */ |
47 } Message; |
56 } Message; |
57 /** @} */ |
|
48 |
58 |
49 #define Message_Initializer {0,0,0,{0,0,0,0,0,0,0,0}} |
59 #define Message_Initializer {0,0,0,{0,0,0,0,0,0,0,0}} |
50 |
60 |
51 typedef UNS8 (*canSend_t)(Message *); |
61 typedef UNS8 (*canSend_t)(Message *); |
52 |
62 |