Home  /  Autodocs  /  carddisk.device

NAME

CMD_READ/ETD_READ - read data from a card.

FUNCTION

These commands transfer data from the card to a supplied buffer.

INPUTS

io_Device
preset by the call to OpenDevice()

io_Unit
preset by the call to OpenDevice()

io_Command
CMD_READ or ETD_READ

io_Flags
0 or IOF_QUICK

io_Data
pointer to the buffer where the data should be put

io_Length
number of bytes to read, must be a multiple of the card block size.

io_Offset
byte offset from the start of the card describing where to read data from, must be a multiple of the card block size.

iotd_Count (ETD_READ only) maximum allowable change counter

value.

RESULT

io_Error
0 for success, or an error code as defined in <devices/trackdisk.h>

SEE ALSO

CMD_WRITE