Download Stellaris USB Library User's Guide

Transcript
Host Functions
Note:
On devices that do not support volume control interfaces, this call returns 0, indicating a 0db
setting.
Returns:
None.
4.5.4.28 USBHSCSIInquiry
This will issue the SCSI inquiry command to a device.
Prototype:
unsigned long
USBHSCSIInquiry(unsigned
unsigned
unsigned
unsigned
long
long
char
long
ulInPipe,
ulOutPipe,
*pucData,
*pulSize)
Parameters:
ulInPipe is the USB IN pipe to use for this command.
ulOutPipe is the USB OUT pipe to use for this command.
pucData is the data buffer to return the results into.
pulSize is the size of buffer that was passed in on entry and the number of bytes returned.
Description:
This function should be used to issue a SCSI Inquiry command to a mass storage device. To
allow for multiple devices, the ulInPipe and ulOutPipe parameters indicate which USB pipes to
use for this call.
Note:
The pucData buffer pointer should have at least SCSI_INQUIRY_DATA_SZ bytes of data or
this function will overflow the buffer.
Returns:
This function returns the SCSI status from the command.
SCSI_CMD_STATUS_PASS or SCSI_CMD_STATUS_FAIL.
The value will be either
4.5.4.29 USBHSCSIModeSense6
This will issue the SCSI Mode Sense(6) command to a device.
Prototype:
unsigned long
USBHSCSIModeSense6(unsigned
unsigned
unsigned
unsigned
unsigned
long
long
long
char
long
ulInPipe,
ulOutPipe,
ulFlags,
*pucData,
*pulSize)
Parameters:
ulInPipe is the USB IN pipe to use for this command.
September 05, 2012
261