ifcan Struct Reference
[CAN Devices]


Detailed Description

CAN interface structure.

Contains information about the CAN interface.

Definition at line 136 of file can_dev.h.


Data Fields

u_char can_type
 Interface type. Either CAN_IF_2A or CAN_IF_2B.
u_long can_baudrate
 Baudrate of device.
u_char can_acc_mask [4]
 Acceptance mask.
u_char can_acc_code [4]
 Acceptance code.
u_long can_rtimeout
 Timout for receiving.
u_char(* can_rxavail )(NUTDEVICE *)
 Receive buffer data available?
u_char(* can_txfree )(NUTDEVICE *)
 Transmit buffer free?
u_char(* can_recv )(NUTDEVICE *, CANFRAME *)
 Receive routine.
void(* can_send )(NUTDEVICE *, CANFRAME *)
 Send routine.
void(* can_set_ac )(NUTDEVICE *, u_char *)
 Set accaptance code.
void(* can_set_am )(NUTDEVICE *, u_char *)
 Set accaptance mask.
u_char(* can_set_baud )(NUTDEVICE *, u_long)
 Set speed.

Field Documentation

Interface type. Either CAN_IF_2A or CAN_IF_2B.

Definition at line 137 of file can_dev.h.

Baudrate of device.

Definition at line 138 of file can_dev.h.

Referenced by AtCanInit(), and SJAInit().

Acceptance mask.

Definition at line 139 of file can_dev.h.

Referenced by SJAInit().

Acceptance code.

Definition at line 140 of file can_dev.h.

Referenced by SJAInit().

Timout for receiving.

Definition at line 141 of file can_dev.h.

Receive buffer data available?

Transmit buffer free?

Receive routine.

Send routine.

Set accaptance code.

Set accaptance mask.

Set speed.


The documentation for this struct was generated from the following file:

© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/