Home |
Function USBDiskSCSICommand |
Function USBDiskSCSICommandUSBDiskSCSICommand can be used to send an arbitrary SCSI command to a USB disk: int USBDiskSCSICommand(RTUDiskData * Device, const BYTE * SCSIPacket, UINT CmdLen, int IsRead, void * Data, UINT Len); ParametersDevicePointer to an RTUDiskData structure associated with the desired disk (see USBDiskInitDevice). SCSIPacketPointer to an SCSI command packet to send to the device. CmdLenSize in bytes of the SCSI command packet pointed to by parameter SCSIPacket. IsRead0 if the data pointed to by parameter Data must be sent to the device and none-zero otherwise. DataPointer to data to be sent to the device or a pointer to a buffer to receive data from the device. If no data is exchanged, NULL may be specified. LenSize in bytes of the data/buffer pointed to by Data. When Data is NULL, this parameter must be zero. return valueThe number of bytes transferred in the data stage or a negative class specific error code or a standard error code on failure.
|