XXX_IoCtl
Description
This function controls the given CAN device. The parameter func defines, which control operation the user wants to perform.
Prototype
CPU_INT16S INT16S XXX_IoCtlIoCtl(CPU_INT16SINT16S devId,
CPU_INT
16U func,
...
CPU_INT16U func, void *argp);
Parameter | Meaning |
---|---|
devId | device identifier, returned by |
| function code |
| optional function argument |
Additional Information
Function Code IO_<DRV<DRV_NAME>NAME>_* | Meaning | used by μC/CAN |
| set the bus baudrate | yes |
| configure the CAN receiver to receive only CAN standard identifiers. | no |
| configure the CAN receiver to receive only CAN extended identifiers. | yes* |
START | starts the CAN controller interface. Most common is to set the CAN controller in active mode | yes |
STOP | stop the CAN controller interface. Most common is to set the CAN controller in passive mode | yes |
| get the node status from the CAN controller | no** |
| get status if CAN controller is ready to send new CAN frame | yes |
...