Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

ifcan Struct Reference
[XgCanDevXgCanDev]

#include <can/can_dev.h>


Detailed Description

CAN interface structure.

Contains information about the CAN interface.


Data Fields

u_char can_type
 Interface type.

u_long can_baudrate
 Baudrate of device.

u_char can_acc_mask [4]
 Acceptance mask.

u_char can_acc_code [4]
 Acceptance code.

u_char(* can_rxavail )(NUTDEVICE *)
 Receive buffer data available?

u_char(* can_txfree )(NUTDEVICE *)
 Transmit buffer free?

void(* 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 accaptance code.


Field Documentation

u_char ifcan::can_type
 

Interface type.

Either CAN_IF_2A or CAN_IF_2B.


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