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 /


SCSIRead

You can use the SCSIRead function to read data from a SCSI device using a polled transfer.

FUNCTION SCSIRead (tibPtr: Ptr): OSErr;
tibPtr
A pointer to an array of TIB instructions.
DESCRIPTION
The SCSIRead function reads data from the previously selected target device. The data transfer instructions are specified by the TIB array pointed to by the tibPtr parameter.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for SCSIRead are
Trap macroSelector
_SCSIDispatch$0005

RESULT CODES
noErr0No error
scCommErr2Communications error, operation timeout
scBadParmsErr4Unrecognized TIB instruction
scPhaseErrXPhase error on the SCSI bus
scCompareErr6Comparison error from scComp instruction
SEE ALSO
See "Using CDB and TIB Structures," beginning on page 3-17, for information about using TIB instructions. See "SCSI Manager TIB Instructions," beginning on page 3-27, for details of the TIB instruction set.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996