SH7286 Group
USB Function Module: USB Mass Storage Class
R01AN0063EJ0100 Rev. 1.00
Page 20 of 32
Oct. 22, 2010
•
DoBulk.c
DoBulk.c handles Bulk transfer. The USB Mass Storage Class (Bulk-Only Transport) does not use the
AcrBulkInReady.
Table 14 DoBulk.c
File Name
Funtion Name
Description
ActBulkOut
Executes Bulk OUT transfer
ActBulkIn
Executes Bulk IN transfer
DoBulk.c
ActBulkInReady
Prepares for bulk IN transfer
•
DoBOTMSClass.c
DoBOTMSClass.c controls two or three stages in the USB Mass Storage Class (Bulk-Only Transport), and behaves
according to the specification.
Table 15 DoBOTMSClass.c
File Name
Function Name
Description
ActBulkOnly
Detects the current state and divides into stages
ActBulkOnlyCommand
Controls CBW in the Bulk-Only Transport
ActBulkOnlyIn
Controls Data transport and Status transport in Bulk-Only
Transport (Data Stage direction: IN)
DoBOTMSClass.c
ActBulkOnlyOut
Controls Data transport and Status transport in Bulk-Only
Transport (Data Stage direction: OUT)
•
DoSCSICommand.c
DoSCSICommand.c parses SCSI commands sent from the host computer, and prepares for the next Data transport or
Status port.
Table 16 DoSCSICommand.c
File Name
Function Name
Description
DecBotCmd
Handles the SCSI command sent from the host in Bulk-
Only Transport
DoSCSICommand.c
SetBotCmdErr
Handles SCSI command error