Important: The information in this document is obsolete and should not be used for new development.
SCSICmd
You use theSCSICmd
function to send a SCSI command to a SCSI device.
FUNCTION SCSICmd (buffer: Ptr; count: Integer): OSErr;
buffer
- A pointer to a buffer containing the SCSI command descriptor block.
count
- The size of the command descriptor block, in bytes.
DESCRIPTION
TheSCSICmd
function sends a SCSI command to the previously selected target device. The command code and other parameters are contained in a command descriptor block (CDB) data structure pointed to by thebuffer
parameter. Thecount
parameter specifies the size of the CDB structure, which can be 6, 10, or 12 bytes.The SCSI specification describes the CDB data structure and lists the standard SCSI commands that all devices must support. Devices may support additional commands not defined by the SCSI specification.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forSCSICmd
are
Trap macro Selector _SCSIDispatch $0003 RESULT CODES
noErr 0 No error scCommErr 2 Communications error, operation timeout scPhaseErr X Phase error on the SCSI bus SEE ALSO
See "SCSI Commands," beginning on page 3-7, for an overview of SCSI commands. Refer to the SCSI specification for detailed information about SCSI commands.