ifcan Struct Reference
[CAN DevicesCAN 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

u_char ifcan::can_type

Interface type. Either CAN_IF_2A or CAN_IF_2B.

Definition at line 137 of file can_dev.h.

u_long ifcan::can_baudrate

Baudrate of device.

Definition at line 138 of file can_dev.h.

Referenced by AtCanInit(), and SJAInit().

u_char ifcan::can_acc_mask[4]

Acceptance mask.

Definition at line 139 of file can_dev.h.

Referenced by SJAInit().

u_char ifcan::can_acc_code[4]

Acceptance code.

Definition at line 140 of file can_dev.h.

Referenced by SJAInit().

u_long ifcan::can_rtimeout

Timout for receiving.

Definition at line 141 of file can_dev.h.

u_char(* ifcan::can_rxavail)(NUTDEVICE *)

Receive buffer data available?

u_char(* ifcan::can_txfree)(NUTDEVICE *)

Transmit buffer free?

u_char(* ifcan::can_recv)(NUTDEVICE *, CANFRAME *)

Receive routine.

void(* ifcan::can_send)(NUTDEVICE *, CANFRAME *)

Send routine.

void(* ifcan::can_set_ac)(NUTDEVICE *, u_char *)

Set accaptance code.

void(* ifcan::can_set_am)(NUTDEVICE *, u_char *)

Set accaptance mask.

u_char(* ifcan::can_set_baud)(NUTDEVICE *, u_long)

Set speed.


The documentation for this struct was generated from the following file:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/