CanSigRead

Description

Reads a CAN signal after checking, that this signal is in use.

Prototype

CPU_INT16S CanSigRead(CPU_INT16S  sigId,
                      void       *buffer,
                      CPU_INT16U  size);

Parameter

Meaning

sigId

Unique signal identifier

buffer

Pointer to value

size

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.