English
Language : 

SH7216 Datasheet, PDF (19/32 Pages) Renesas Technology Corp – USB Mass Storage Class
SH7216 Group
USB Function Module: USB Mass Storage Class
• DoBOTMSClass.c
With DoBOTMSClass.c, control of the two or three stages of the USB Mass Storage Class (Bulk-Only Transport) is
carried out, and operation is carried out in accordance with the specifications.
Table 15 DoBOTMSClass.c
File in which
Stored
DoBOTMSClass.c
Function Name
ActBulkOnly
ActBulkOnlyCommand
ActBulkOnlyIn
ActBulkOnlyOut
Purpose
Divides Bulk-Only Transport into separate stages
Controls CBW for Bulk-Only Transport
Controls data transport and status transport (when the data
stage is in the IN direction)
Controls data transport and status transport (when the data
stage is in the OUT direction)
• DoSCSICommand.c
The DoSCSICommand.c function is used to analyze SCSI commands sent from the host PC and prepare for the next
data transport or status transport.
Table 16 DoSCSICommand.c
File in which
Stored
Function Name
DoSCSICommand.c DecBotCmd
SetBotCmdErr
Purpose
Processes SCSI commands sent from the host using Bulk-
Only Transport
Processes SCSI command errors
5.5 RAM Disk
In the sample program provided here, the SD-RAM in the SH7216 CPU Board is selected as the disk device, and the
host PC is notified that the SH7216 CPU Board (function) is the disk.
As shown in figure 7, the disk device of the function has a master boot block and a partition boot block. When the
system is booted, an initialization routine is used to write the master boot block and the partition boot block to the RAM
disk area on the SDRAM.
Master boot block
Sector 0
Partition boot block
Sector 20
Figure 7 Disk Construction
SCSI commands are used to allow function access from the host PC (saving and loading data). In order to work with
SCSI commands, the user needs to understand the construction shown in figure 7 and then write the operation.
REJ06B0897-0100/Rev.1.00
July 2009
Page 19 of 32