English
Language : 

SH7216 Datasheet, PDF (18/32 Pages) Renesas Technology Corp – USB Mass Storage Class
SH7216 Group
USB Function Module: USB Mass Storage Class
• DoRequestBOT_StorageClass.c
This function carries out processing according to the USB Mass Storage Class (Bulk-Only Transport) commands
(Bulk-Only Mass Storage Reset and Get Max LUN).
The Bulk-Only Mass Storage Reset command resets all of the interfaces used in Bulk-Only Transport.
The Get Max LUN command returns the largest logical unit number used by peripheral devices. In this sample
program, there is one logical unit, so a value of 0 is returned to the host.
Table 12 DoRequestBOT_StorageClass.c
File in which
Stored
DoRequestBOT_
StorageClass.c
Function Name
DecBOTClassCommands
Purpose
Processes USB Mass Storage Class (Bulk-Only Transport)
commands
• DoControl.c
When control transfer interrupt SETUP TS is generated, ActControl obtains the command, and decoding is carried
out by DecStandardCommands to determine the transfer direction. Next, when control transfer interrupt EP0o TS,
EP0i TR, or EP0i TS is generated, ActControlInOut calls either ActControlIn or ActControlOut depending on the
transfer direction, and the data stage and status stage are carried out by the called function.
Table 13 DoControl.c
File in which
Stored
DoControl.c
Function Name
ActControl
ActControlIn
ActControlOut
ActControlInOut
Purpose
Controls the setup stage of control transfer
Controls the data stage and status stage of control IN
transport (transport in which the data stage is in the IN
direction)
Controls the data stage and status stage of control OUT
transport (transport in which the data stage is in the OUT
direction)
Sorts the data stage and status stage of control transfers
and direct them to ActControlIn and ActControlOut.
• DoBulk.c
These functions carry out processing involving bulk transport. ActBulkInReady is not used in USB Mass Storage
Class (Bulk-Only Transport).
Table 14 DoBulk.c
File in which
Stored
DoBulk.c
Function Name
ActBulkOut
ActBulkIn
ActBulkInReady
Purpose
Performs bulk-out transfer
Performs bulk-in transfer
Performs preparations for bulk-in transfer
REJ06B0897-0100/Rev.1.00
July 2009
Page 18 of 32