Important: The information in this document is obsolete and should not be used for new development.
SCSISelect
You useSCSISelect
function to select a SCSI device for a subsequent operation.
FUNCTION SCSISelect (targetID: Integer): OSErr;
targetID
- The SCSI ID of the target device, with a value from 0 to 7.
DESCRIPTION
TheSCSISelect
function selects the SCSI device identified by thetargetID
value.
- IMPORTANT
- You must call the
SCSIGet
function before callingSCSISelect
.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forSCSISelect
are
Trap macro Selector _SCSIDispatch $0002 RESULT CODES
noErr 0 No error scCommErr 2 Communications error, operation timeout scArbNBErr 3 Bus busy, arbitration timeout scSequenceErr 8 Attempted operation is out of sequence SEE ALSO
See "SCSI Bus Phases," beginning on page 3-5, for a description of the selection phase.