Back to LIN Commands
CMD_GET_SIGNAL_INFO

Command: CMD_GET_SIGNAL_INFO
Destination: SD_LIN
Destination Channel: 0

Description

Clients use this command to retrieve information about a signal defined in the LDF (LIN Description File) that has been parsed.


Command Data Format

Signal Name padding
variable 0-3 bytes

Signal Name
The name of the signal for which information will be returned. The name is a null terminated string.

 

Response Data Format

Offset Length Signal Encoding Name padding
1 byte 1 byte variable 0-3 bytes

Offset
The starting bit number of the signal. The bit offset references the data frame as as a single big endian value. That is bit 0 is the most significant bit of the first byte and bit 63 is the least significant bit of the eighth byte.

Length
The length of the signal in bits.

Signal Encoding Name
The name of the signal encoding definition as a null terminated string.

 

note:
The Signal Encoding Name has a variable length. The name is terminated with a null character, making it a standard C string. This enables the use of strcpy() and length() when working with the name.


Response Return Codes

RESP_OK Execution of the command was successful.
RESP_INVAL_PARAM No LDF (LIN Description File) has been parsed or the signal is not defined in the LDF.
RESP_UNSUPPORTED This command is not supported on the specified channel.
RESP_UNREG The specified source channel is not registered with the server.
RESP_UNKNOWN_ERR An unknown error occurred.

|Top|