SCSICmd
SCSICmd Send a command to the selected target device
#include <SCSI.h> SCSI Manager
OSErr SCSICmd( buffer, count );
Ptr buffer; pointer to the command to be sent
short count; size of command pointed to by buffer
returns 16-bit Error Code; 0=no error
SCSICmd sends the command pointed to by buffer to the selected target
device. The size of the command in bytes is specified in count.
buffer is a pointer to a command de scriptor block; the SCSI command
structure is outlined in ANSC document X3T0.2/82-2.
count is the size of the command de scriptor block pointer to by buffer.
Returns: an error code indicating success or failure of the function. It will be
one of:
noErr (0) No error
scCommErr (2) Breakdown in SCSI protocols
scPhaseErr (5) Phase error

Notes: The error codes returned by SCSI Manager routines typically indicate
only that a given operation has failed. To determine the actual cause of the
failure, another SCSI command needs to be sent asking the device what went
wrong.
Use SCSISelect to specify the target device.