CanSigWrite
Description
Updates a CAN signal after checking, that this signal is in use.
Prototype
CPU_INT16S CanSigWrite(CPU_INT16S sigId, void *buffer, CPU_INT16U size);
Parameter | Meaning |
---|---|
| Unique signal identifier |
| Pointer to value |
| Storage size of CAN signal. |
Additional Information
The storage size of the signal is given by parameter CANSIG_MAX_WIDTH
.
Return Value
One of the error codes CAN_ERR_CANSIZE
, CAN_ERR_SIGID
or CAN_ERR_NULLPTR
if an error is detected. Otherwise the storage size of CAN signal is returned.