SH7286 Group
USB Function Module: USB Mass Storage Class
R01AN0063EJ0100 Rev. 1.00
Page 9 of 32
Oct. 22, 2010
3.5
Subclass Codes (SCSI Transparent Command Set)
The function must support subclass commands in CBW which are sent from the host computer, and handle commands.
This sample program supports 11 SCSI commands listed in Table 6. When the function receives commands which are
not supported, it reports to the host computer "Command failed" using CSW.
Table 6 Supported Commands
Operation Code
Command Name
Description
H'00
TEST UNIT READY
Checks if a logical unit is ready
H'03 REQUEST
SENSE
After an error occurred in the previous command
block, it provides the information about the error to
the host
H'12
INQUIRY
Reports the information about the drive to the host
H'1A
MODE SENSE (6)
Reports the state of the drive to the host
H'1B
START/STOP UNIT
Controls to attach or remove the media device
H'1E
PREVENT ALLOW MEDIUM
REMOVAL
Prevents or allows the removal of media
H'23
READ FORMAT CAPACITIES
Reports the format information of the media
H'25 READ
CAPACITY
Reports the information about sectors in the media
to the host
H'28 READ
(10)
Reads the specified number of sectors of data from
the read sector specified
H'2A WRITE
(10)
Writes the specified number of sectors of data to
the write sector specified
H'2F
VERIFY (10)
Checks if the data on the media can be accessed