Back to LIN Commands
CMD_LDF_DESC

Command: CMD_LDF_DESC
Destination: SD_LIN
Destination Channel: 0

Description

Clients use this command to specify the size, name and description of an LDF (LIN Description File) to be uploaded to the . The returned handle is needed to upload the file using the CMD_LDF_UPLOAD command.


Command Data Format

Size Name Description
4 bytes 32 bytes 80 bytes
Size
This is the total size of the LDF to be uploaded.

Name

This is the name of the LDF to be uploaded to the . If the name is less than 32 bytes long, it should be null padded.
Description
This is a description of the LDF to be uploaded. If the description is less than 80 bytes long, it should be null padded.
note:
The LDF upload command must be used to upload the file after the name has been specified with this command.

Response Data Format

Exists Flag Padding
1 byte 3 bytes
Exists Flag
This is set to 1 if a file with the same exists on the .



Response Return Codes

RESP_OK Execution of the command was successful.
RESP_NO_ROOM Not enough room for program or program is too large
RESP_INVAL_PARAM Invalid filename. The filename contains an invalid character.
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|