1
Dependents: yezhong_main_controller_copy yezhong_main_controller_copy_1 yezhong_main_controller_copy yezhong_main_controller_copy-
mcp2515_can.h@0:d8f50b1e384f, 2010-01-30 (annotated)
- Committer:
- tecnosys
- Date:
- Sat Jan 30 08:46:04 2010 +0000
- Revision:
- 0:d8f50b1e384f
- Child:
- 1:dbc44582f2f8
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tecnosys | 0:d8f50b1e384f | 1 | #ifndef MCP2515_CAN_H_ |
tecnosys | 0:d8f50b1e384f | 2 | #define MCP2515_CAN_H_ |
tecnosys | 0:d8f50b1e384f | 3 | |
tecnosys | 0:d8f50b1e384f | 4 | #define CANDEBUG 1 |
tecnosys | 0:d8f50b1e384f | 5 | |
tecnosys | 0:d8f50b1e384f | 6 | #define CANUSELOOP 0 |
tecnosys | 0:d8f50b1e384f | 7 | |
tecnosys | 0:d8f50b1e384f | 8 | #define CANSENDTIMEOUT (200) /* milliseconds */ |
tecnosys | 0:d8f50b1e384f | 9 | |
tecnosys | 0:d8f50b1e384f | 10 | // initial value of gCANAutoProcess |
tecnosys | 0:d8f50b1e384f | 11 | #define CANAUTOPROCESS (1) |
tecnosys | 0:d8f50b1e384f | 12 | #define CANAUTOON (1) |
tecnosys | 0:d8f50b1e384f | 13 | #define CANAUTOOFF (0) |
tecnosys | 0:d8f50b1e384f | 14 | |
tecnosys | 0:d8f50b1e384f | 15 | #define CAN_STDID (0) |
tecnosys | 0:d8f50b1e384f | 16 | #define CAN_EXTID (1) |
tecnosys | 0:d8f50b1e384f | 17 | |
tecnosys | 0:d8f50b1e384f | 18 | #define CANDEFAULTIDENT (0x55CC) |
tecnosys | 0:d8f50b1e384f | 19 | #define CANDEFAULTIDENTEXT (CAN_EXTID) |
tecnosys | 0:d8f50b1e384f | 20 | |
tecnosys | 0:d8f50b1e384f | 21 | #define CAN_20KBPS (1) |
tecnosys | 0:d8f50b1e384f | 22 | #define CAN_125KBPS (CAN_20KBPS+1) |
tecnosys | 0:d8f50b1e384f | 23 | |
tecnosys | 0:d8f50b1e384f | 24 | #define CAN_OK (0) |
tecnosys | 0:d8f50b1e384f | 25 | #define CAN_FAILINIT (1) |
tecnosys | 0:d8f50b1e384f | 26 | #define CAN_FAILTX (2) |
tecnosys | 0:d8f50b1e384f | 27 | #define CAN_MSGAVAIL (3) |
tecnosys | 0:d8f50b1e384f | 28 | #define CAN_NOMSG (4) |
tecnosys | 0:d8f50b1e384f | 29 | #define CAN_CTRLERROR (5) |
tecnosys | 0:d8f50b1e384f | 30 | #define CAN_FAIL (0xff) |
tecnosys | 0:d8f50b1e384f | 31 | |
tecnosys | 0:d8f50b1e384f | 32 | #define CAN_MAX_CHAR_IN_MESSAGE (8) |
tecnosys | 0:d8f50b1e384f | 33 | |
tecnosys | 0:d8f50b1e384f | 34 | |
tecnosys | 0:d8f50b1e384f | 35 | #endif |