Rev 696 | Rev 766 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 696 | Rev 698 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef __CANBUS_H |
1 | #ifndef __CANBUS_H |
2 | #define __CANBUS_H |
2 | #define __CANBUS_H |
Line -... | Line 3... | ||
- | 3 | ||
- | 4 | #define CAN_ID_VERSION 0 |
|
- | 5 | #define CAN_ID_STATUS 1 |
|
- | 6 | #define CAN_ID_TEXT1 2 // Status-Text 8 Bytes |
|
- | 7 | #define CAN_ID_TEXT2 3 |
|
- | 8 | #define CAN_ID_TEXT3 4 |
|
- | 9 | #define CAN_ID_FS_LON 5 |
|
- | 10 | #define CAN_ID_FS_LAT 6 |
|
- | 11 | #define CAN_ID_FS_ALT 7 |
|
- | 12 | ||
- | 13 | #define MAX_CAN_MSG 10 |
|
3 | 14 | ||
4 | void CanbusInit(void); |
15 | void CanbusInit(void); |
5 | void ProcessCanBus(void); |
16 | void ProcessCanBus(void); |
6 | extern canmsg RxCanMsg; |
17 | extern canmsg RxCanMsg; |
Line 22... | Line 33... | ||
22 | s32 sLong; |
33 | s32 sLong; |
23 | float Float; |
34 | float Float; |
24 | } __attribute__((packed)) D; |
35 | } __attribute__((packed)) D; |
25 | } /*__attribute__((packed))*/ CanMessage_t; |
36 | } /*__attribute__((packed))*/ CanMessage_t; |
Line -... | Line 37... | ||
- | 37 | ||
- | 38 | ||
26 | 39 | extern CanMessage_t CanTxMessage[MAX_CAN_MSG]; |
|
- | 40 | extern CanMessage_t CanRxMessage[MAX_CAN_MSG]; |
|
Line 27... | Line 41... | ||
27 | //extern CanMessage_t CanMessage; |
41 | extern u32 CanbusTimeOut; |