Back to Card Commands
CMD_CARD_IOCTL

Command:              CMD_CARD_IOCTL
Destination:          SD_CARD
Destination Channel:  Channel ID

Description

Clients use this command to access generic I/O functions and channel (expansion module)-specific I/O functions.

Command data format

IOCTL NumberIOCTL Data
4-byte long0-n bytes (depends on IOCTL number)

Response data format

IOCTL Data
0-n bytes (same number of bytes as in command data)

IOCTL Number is a 4-byte long value (in network byte order) that selects the desired function. These functions may be generic ioctls or they may be hardware-specific- please see the hardware specific pages for specific IOCTL numbers.

IOCTL Data depends on the particular IOCTL number indicated. Please see IOCTL documentation for specific data format.

NOTE about data format: The number of data bytes sent back in the response to the CMD_CARD_IOCTL command is the same as the number of data bytes sent with the command. Therefore CMD_CARD_IOCTL commands that are expected to return data must contain placeholder data of the same number of bytes as the expected return data.

Response return codes

RESP_OK Execution of the command was successful.
RESP_INVAL_CHAN The specified channel is invalid.
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|