CanBusIoCtl
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 |
---|---|
| Unique bus identifier |
| The function code |
| Pointer to argument, specific to the function code |
Additional Information
Function Code | Meaning |
---|---|
| Reinitialize the CAN bus; all pending transmissions will be canceled and received messages will be lost |
| Remove all entries out of the TX queue |
| Remove all entries out of the RX queue |
| Set TX timeout value |
| 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
.