CanSigIoCtl
Description
This function performs a special action on the opened device. The function code defines what the caller want to do.
Prototype
CPU_INT16S CanSigIoCtl(CPU_INT16S sigId, CPU_INT16U func, void *argp);
Parameter | Meaning |
---|---|
| Unique signal identifier |
| The functioncode |
| Pointer to argument, specific to the function code |
Additional Information
Function Code | Meaning |
---|---|
| Get the argument pointer width ( |
| Get the argument pointer status ( |
| Get the argument pointer timestamp ( |
| Get the argument pointer timestamp ( |
| Timestamping can be disabled to improve performance. The argument pointer is unused. |
| Enables timestamping. The argument pointer is unused. |
| The timestamp of a signal will be set to the content of the argument pointer ( |
| Sets a write protections for a dedicated signal. When set, CanSigWrite-function will have no effect on that signal. The argument pointer ( |
| Get the argument pointer write protection ( |
The IoCtl-functions concerning timestamp are omitted if CANSIG_STATIC_CONFIG
is set to 1.
Return Value
One of the following error codes is returned: CAN_ERR_NONE
, CAN_ERR_SIGID
, CAN_ERR_NULLPTR
, CAN_ERR_NULLSIGCFG
or CAN_ERR_IOCTRLFUNC
.