Collaboration diagram for CAN Devices:
Data Structures | |
struct | _CANFRAME |
CAN frame structure. More... | |
struct | _CANINFO |
CAN controller information structure. More... | |
struct | ifcan |
CAN interface structure. More... | |
struct | _CANFRAME |
CAN frame structure. More... | |
struct | _CANINFO |
CAN controller information structure. More... | |
struct | ifcan |
CAN interface structure. More... | |
Defines | |
#define | CAN_IF_2A 0x01 |
#define | CAN_IF_2B 0x02 |
#define | CAN_SPEED_10K 0 |
10 kbit/s, max. cable length 5000 m | |
#define | CAN_SPEED_20K 1 |
20 kbit/s, max. cable length 2500 m | |
#define | CAN_SPEED_50K 2 |
50 kbit/s, max. cable length 1000 m | |
#define | CAN_SPEED_100K 3 |
100 kbit/s, max. cable length 600 m | |
#define | CAN_SPEED_125K 4 |
125 kbit/s, max. cable length 500 m | |
#define | CAN_SPEED_250K 5 |
250 kbit/s, max. cable length 250 m | |
#define | CAN_SPEED_500K 6 |
500 kbit/s, max. cable length 100 m | |
#define | CAN_SPEED_800K 7 |
800 kbit/s, max. cable length 50 m | |
#define | CAN_SPEED_1M 8 |
1 Mbit/s, max. cable length 25 m | |
#define | CAN_SPEED_CUSTOM 255 |
Typedefs | |
typedef _CANFRAME | CANFRAME |
CAN frame type. | |
typedef _CANINFO | CANINFO |
CAN controller information type. | |
typedef ifcan | IFCAN |
Canbus interface type. | |
Functions | |
u_char | CAN_SetSpeed (NUTDEVICE *dev, u_long baudrate) |
void | CAN_SetFilter (NUTDEVICE *dev, u_char *ac, u_char *am) |
void | CAN_TxFrame (NUTDEVICE *dev, CANFRAME *frame) |
u_char | CAN_TryTxFrame (NUTDEVICE *dev, CANFRAME *frame) |
u_char | CAN_TxFree (NUTDEVICE *dev) |
void | CAN_RxFrame (NUTDEVICE *dev, CANFRAME *frame) |
u_char | CAN_TryRxFrame (NUTDEVICE *dev, CANFRAME *frame) |
u_char | CAN_RxAvail (NUTDEVICE *dev) |