CAN interface structure. More...
#include <can/can_dev.h>
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. |
CAN interface structure.
Contains information about the CAN interface.
Interface type. Either CAN_IF_2A or CAN_IF_2B.
Baudrate of device.
Referenced by AtCanInit(), and SJAInit().
Acceptance mask.
Referenced by SJAInit().
Acceptance code.
Referenced by SJAInit().
Timout for receiving.
Receive buffer data available?
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.
Set speed.