SH7286 Group
USB Function Module: USB Mass Storage Class
Behavior in Bulk IN transfer
on the Data transport
Send data to reach the number of
data host expects
Set H'00 to the bCSWStatus
Go to behavior on
the Status transport
Send data on Data transport
Number of data host expects
=
Number of data function intends
Number of data host expects
>
Number of data function intends
Add 0 to reach the number of data
host expects
Set the number of data added to
the dCSWDataResidue
Set the number of data not
transmitted to the
dCSWDataResidue
Set H'00 to the bCSWStatus
Set H'02 to the bCSWStatus
Yes
No
Yes
No
Case: (6)
Case: (4) (5)
Case: (7) (8)
Figure 9 Flow Chart for Error Handling on Data Transfer (2/3)
R01AN0063EJ0100 Rev. 1.00
Page 28 of 32
Oct. 22, 2010