Important: The information in this document is obsolete and should not be used for new development.
SCSIRead
You can use theSCSIReadfunction 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
TheSCSIReadfunction reads data from the previously selected target device. The data transfer instructions are specified by the TIB array pointed to by thetibPtrparameter.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forSCSIReadare
Trap macro Selector _SCSIDispatch $0005 RESULT CODES
noErr 0 No error scCommErr 2 Communications error, operation timeout scBadParmsErr 4 Unrecognized TIB instruction scPhaseErr X Phase error on the SCSI bus scCompareErr 6 Comparison error from scCompinstructionSEE 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.