SH7286 Group
USB Function Module: USB Mass Storage Class
Behavior in Bulk OUT transfer
on the Data transport
Receive data to reach the number
of data host expects
Set H'00 to the bCSWStatus
Go to behavior on
the Status transport
Receive data on Data transport
Command executed by the
function matches the transfer
direction on Data transport?
Receive data
on the Data transport
Set the number of data not
transmitted to the
dCSWDataResidue
Set H'01 to the bCSWStatus
Set H'02 to the bCSWStatus
Yes
No
Yes
No
Case: (6)
Case: (9) (11)
Case: (13)
Number of data host expects
=
Number of data function intends
Number of data host expects
>
Number of data function intends
Set the number of data exceeded
to the dCSWDataResidue
Dummy read the number of data
host expects
Case: (1) (12)
Set H'02 to the bCSWStatus
Case: (10)
Yes
No
Figure 10 Flow Chart for Error Handling on Data Transfer (3/3)
R01AN0063EJ0100 Rev. 1.00
Page 29 of 32
Oct. 22, 2010