Rev 101 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 101 | Rev 339 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | * |
2 | * |
| 3 | * CAN module header file |
3 | * CAN module header file |
| 4 | * |
4 | * |
| 5 | ********************************************************************* |
5 | ********************************************************************* |
| 6 | * FileName: $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canBoot/Include/CAN.h $ |
6 | * FileName: $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canBoot/Include/CAN.h $ |
| 7 | * Last changed: $LastChangedDate: |
7 | * Last changed: $LastChangedDate: 2007-02-25 20:51:08 +0100 (Sun, 25 Feb 2007) $ |
| 8 | * By: $LastChangedBy: johboh $ |
8 | * By: $LastChangedBy: johboh $ |
| 9 | * Revision: $Revision: |
9 | * Revision: $Revision: 339 $ |
| 10 | ********************************************************************/ |
10 | ********************************************************************/ |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | #ifndef CAN_H |
13 | #ifndef CAN_H |
| 14 | #define CAN_H |
14 | #define CAN_H |
| 15 | 15 | ||
| 16 | #include <CANdefs.h> |
16 | #include <CANdefs.h> |
| 17 | #include <compiler.h> |
17 | #include <compiler.h> |
| 18 | #include <typedefs.h> |
18 | #include <typedefs.h> |
| 19 | - | ||
| 20 | - | ||
| 21 | typedef struct _CAN_PROTO_MESSAGE |
- | |
| 22 | { |
- | |
| 23 | BYTE funct; //4 |
- | |
| 24 |
|
19 | #include <funcdefs.h> |
| 25 | BYTE nid; //6 |
- | |
| 26 | WORD sid; //9 |
- | |
| 27 | BYTE data_length;//5 |
- | |
| 28 | BYTE data[8]; |
- | |
| 29 | } CAN_PROTO_MESSAGE; |
- | |
| 30 | - | ||
| 31 | - | ||
| 32 | typedef enum {PRIO_LOWEST=0,PRIO_LOW=1,PRIO_HIGH=2,PRIO_HIGEST=3} CAN_PRIORITY; |
- | |
| 33 | - | ||
| 34 | 20 | ||
| 35 | void canInit(void); |
21 | void canInit(void); |
| 36 | BOOL canSendMessage( |
22 | BOOL canSendMessage(CAN_PACKET cp); |
| 37 | 23 | ||
| 38 | #endif //CAN.h |
24 | #endif //CAN.h |