Description
This function performs a special action on the opened device. The function code func defines what the caller want to do.
Prototype
CPU_INT
16S CanBusIoCtl(CPU_INT
16S busId,
CPU_INT
16U 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 |
| 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
.