Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

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

Prototype

CPU_INT16S CanBusIoCtl(CPU_INT16S busId,
CPU_INT16U 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

Return Value

One of the following error codes is returned: CAN_ERR_NONE, CAN_ERR_BUSID, CAN_ERR_NULLPTR, CAN_ERR_OPEN, CAN_ERR_OSSEMPOST, CAN_ERR_OSFREE or CAN_ERR_IOCTRLFUNC.

  • No labels