Home  /  Autodocs  /  carddisk.device

NAME

CMD_WRITE/ETD_WRITE - write sectors of data to a disk.

FUNCTION

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

INPUTS

io_Device
Preset by the call to OpenDevice()

io_Unit
Preset by the call to OpenDevice()

io_Command
CMD_WRITE or ETD_WRITE

io_Flags
0 or IOF_QUICK

io_Data
Pointer to the buffer where the data should be put

io_Length
Number of bytes to write, must be a multiple of the card block size.

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

iotd_Count
(ETD_WRITE 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_READ, TD_FORMAT