IFCAN Struct Reference
[CAN Devices]

CAN interface structure. More...


Data Fields

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


Detailed Description

CAN interface structure.

Canbus interface type.

Contains information about the CAN interface.

Definition at line 139 of file can_dev.h.


Field Documentation

uint8_t IFCAN::can_type

Interface type. Either CAN_IF_2A or CAN_IF_2B.

Definition at line 140 of file can_dev.h.

uint32_t IFCAN::can_baudrate

Baudrate of device.

Definition at line 141 of file can_dev.h.

uint8_t IFCAN::can_acc_mask[4]

Acceptance mask.

Definition at line 142 of file can_dev.h.

uint8_t IFCAN::can_acc_code[4]

Acceptance code.

Definition at line 143 of file can_dev.h.

uint32_t IFCAN::can_rtimeout

Timout for receiving.

Definition at line 144 of file can_dev.h.

uint8_t(* IFCAN::can_rxavail)(NUTDEVICE *)

Receive buffer data available?

uint8_t(* IFCAN::can_txfree)(NUTDEVICE *)

Transmit buffer free?

uint8_t(* IFCAN::can_recv)(NUTDEVICE *, CANFRAME *)

Receive routine.

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

Send routine.

void(* IFCAN::can_set_ac)(NUTDEVICE *, uint8_t *)

Set accaptance code.

void(* IFCAN::can_set_am)(NUTDEVICE *, uint8_t *)

Set accaptance mask.

uint8_t(* IFCAN::can_set_baud)(NUTDEVICE *, uint32_t)

Set speed.


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

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