Dependents:   Kamal_CAN ReadFromSerial446

Committer:
tecnosys
Date:
Mon Oct 18 13:40:02 2010 +0000
Revision:
8:872137b3a8a8
Parent:
1:dbc44582f2f8
0.1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tecnosys 1:dbc44582f2f8 1 #ifndef MCP2515_CAN_H_
tecnosys 1:dbc44582f2f8 2 #define MCP2515_CAN_H_
tecnosys 1:dbc44582f2f8 3
tecnosys 1:dbc44582f2f8 4 #define CANDEBUG 1
tecnosys 1:dbc44582f2f8 5
tecnosys 1:dbc44582f2f8 6 #define CANUSELOOP 0
tecnosys 1:dbc44582f2f8 7
tecnosys 1:dbc44582f2f8 8 #define CANSENDTIMEOUT (200) /* milliseconds */
tecnosys 1:dbc44582f2f8 9
tecnosys 1:dbc44582f2f8 10 // initial value of gCANAutoProcess
tecnosys 1:dbc44582f2f8 11 #define CANAUTOPROCESS (1)
tecnosys 1:dbc44582f2f8 12 #define CANAUTOON (1)
tecnosys 1:dbc44582f2f8 13 #define CANAUTOOFF (0)
tecnosys 1:dbc44582f2f8 14
tecnosys 1:dbc44582f2f8 15 #define CAN_STDID (0)
tecnosys 1:dbc44582f2f8 16 #define CAN_EXTID (1)
tecnosys 1:dbc44582f2f8 17
tecnosys 1:dbc44582f2f8 18 #define CANDEFAULTIDENT (0x55CC)
tecnosys 1:dbc44582f2f8 19 #define CANDEFAULTIDENTEXT (CAN_EXTID)
tecnosys 1:dbc44582f2f8 20
tecnosys 1:dbc44582f2f8 21 #define CAN_20KBPS (1)
tecnosys 1:dbc44582f2f8 22 #define CAN_125KBPS (CAN_20KBPS+1)
tecnosys 1:dbc44582f2f8 23
tecnosys 1:dbc44582f2f8 24 #define CAN_1MBPS_8MHZ (58)
tecnosys 1:dbc44582f2f8 25 #define CAN_500KBPS_8MHZ (57)
tecnosys 1:dbc44582f2f8 26 #define CAN_250KBPS_8MHZ (56)
tecnosys 1:dbc44582f2f8 27 #define CAN_125KBPS_8MHZ (55)
tecnosys 1:dbc44582f2f8 28 #define CAN_100KBPS_8MHZ (54)
tecnosys 1:dbc44582f2f8 29 #define CAN_50KBPS_8MHZ (53)
tecnosys 1:dbc44582f2f8 30 #define CAN_20KBPS_8MHZ (52)
tecnosys 1:dbc44582f2f8 31 #define CAN_10KBPS_8MHZ (51)
tecnosys 1:dbc44582f2f8 32
tecnosys 1:dbc44582f2f8 33 #define CAN_OK (0)
tecnosys 1:dbc44582f2f8 34 #define CAN_FAILINIT (1)
tecnosys 1:dbc44582f2f8 35 #define CAN_FAILTX (2)
tecnosys 1:dbc44582f2f8 36 #define CAN_MSGAVAIL (3)
tecnosys 1:dbc44582f2f8 37 #define CAN_NOMSG (4)
tecnosys 1:dbc44582f2f8 38 #define CAN_CTRLERROR (5)
tecnosys 1:dbc44582f2f8 39 #define CAN_FAIL (0xff)
tecnosys 1:dbc44582f2f8 40
tecnosys 1:dbc44582f2f8 41 #define CAN_MAX_CHAR_IN_MESSAGE (8)
tecnosys 1:dbc44582f2f8 42
tecnosys 1:dbc44582f2f8 43
tecnosys 0:d8f50b1e384f 44 #endif