SCSISelect
You use SCSISelect 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
The SCSISelect function selects the SCSI device identified by the targetID value.
- IMPORTANT
- You must call the
SCSIGet function before calling SCSISelect.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for SCSISelect 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.