Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 3 - SCSI Manager / SCSI Manager Reference
SCSI Manager Routines /


SCSIGet

You use the SCSIGet function to arbitrate for control of the SCSI bus.

FUNCTION SCSIGet: OSErr;
DESCRIPTION
The SCSIGet function prepares the SCSI Manager to initiate the arbitration sequence. If the SCSI Manager is busy with another operation, this function returns the scMgrBusyErr result. If arbitration failed because the bus was busy, the function returns the scArbNBErr 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 the SCSISelect function. However, your program must always call the SCSIGet function before calling SCSISelect.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for SCSIGet are
Trap macroSelector
_SCSIDispatch$0001

RESULT CODES
noErr0No error
scCommErr2Communications error, operation timeout
scArbNBErr3Bus busy, arbitration timeout
scMgrBusyErr7SCSI Manager busy
SEE ALSO
See "SCSI Bus Phases," beginning on page 3-5, for a description of the arbitration phase.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996