Important: The information in this document is obsolete and should not be used for new development.
SCSIGet
You use theSCSIGet
function to arbitrate for control of the SCSI bus.
FUNCTION SCSIGet: OSErr;DESCRIPTION
TheSCSIGet
function prepares the SCSI Manager to initiate the arbitration sequence. If the SCSI Manager is busy with another operation, this function returns thescMgrBusyErr
result. If arbitration failed because the bus was busy, the function returns thescArbNBErr
result.
- IMPORTANT
- The operation of the
SCSIGet
function varies on different Macintosh models and does not necessarily initiate the SCSI bus arbitration phase. In some Macintosh models, the arbitration phase does not occur until your program calls theSCSISelect
function. However, your program must always call theSCSIGet
function before callingSCSISelect
.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forSCSIGet
are
Trap macro Selector _SCSIDispatch $0001 RESULT CODES
noErr 0 No error scCommErr 2 Communications error, operation timeout scArbNBErr 3 Bus busy, arbitration timeout scMgrBusyErr 7 SCSI Manager busy SEE ALSO
See "SCSI Bus Phases," beginning on page 3-5, for a description of the arbitration phase.