Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This function performs a special action on the opened device. The function code func defines what the caller want to do.

Prototype

CPU_INT16SINT16S CanBusIoCtl(CPU_INT16SINT16S  busId,
CPU_INT16UINT16U func,
void *argp);

Parameter

Meaning

busId

Unique bus identifier

func

The function code

argp

Pointer to argument, specific to the function code

Additional Information

Function Code

Meaning

CANBUS_RESET

Reinitialize the CAN bus; all pending transmissions will be canceled and received messages will be lost

CANBUS_FLUSH_TX

Remove all entries out of the TX queue

CANBUS_FLUSH_RX

Remove all entries out of the RX queue

CANBUS_SET_TX_TIMEOUT

Set TX timeout value

CANBUS_SET_RX_TIMEOUT

Set RX timeout value

...