CanSigCreate()
Description
This function checks, if a free CAN signal is available. If so, this signal is set in front of the used list and initialized with the configured signal data.
Prototype
CPU_INT
16S CanSigCreate(CANSIG_PARA
*cfg);
Parameter | Meaning |
---|---|
cfg | Configuration of CAN signal |
Additional Information
This function is omitted if CANSIG_STATIC_CONFIG
is set to 1.
Return Value
One of the error codes CAN_ERR_NULLPTR
or CAN_ERR_SIGCREATE
, if an error is detected. Otherwise the signal identifier is returned.
End