| Electronic Components Datasheet Search |
|
SH7216 Datasheet(PDF) 29 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7216 Datasheet(HTML) 29 Page - Renesas Technology Corp |
|
29 / 32 page ![]() SH7216 Group USB Function Module: USB Mass Storage Class REJ06B0897-0100/Rev.1.00 July 2009 Page 29 of 32 When a USB Mass Storage Class (Bulk-Only Transport) transmission is carried out, transport of the CBW initiates a series of data transfers, and when the CSW is transported to the host PC, a series of data transfers is processed. This status contains two items: dCSWStatus that indicates the transport result, and dCSWDataResidue that indicates the number of error bytes. In this sample program, the following two fields are used to create these two items. ⎯ dCBWDataTransferLength field of CBW packet ⎯ dCSWDataTransferResidue field of CSW packet The dCBWDataTransferLength field of the CBW packet is used as the variable in which the number of data bytes the host PC specifies to be handled in the data transport is entered. The dCSWDataTrasferResidue field of the CSW packet is used as the variable in which the number of data bytes the function handles in the data transport is entered. When the CBW transport has been completed, the number of data bytes planned to be handled in the data transport by the host PC and the function are stored in the dCBWDataTransferLength and dCSWDataTransferResidue fields, respectively. Data is transferred in the data transport according to the flowcharts. If data transport between the host PC and function has been processed without errors, the values in the dCBWDataTransferLength and dCSWDataTransferResidue fields are both subtracted by the number of bytes that have been transferred for every data transfer in the data transport. For other cases, the difference between the number of data bytes the host PC requires to be handled in the data transport and the number of data bytes the function has handled in the data transport is stored in the dCSWDataTransferResidue field of the CSW packet, and operation then moves to the status transport. dCBWDataTransferLength dCSWDataResidue dCBWDataTransferLength dCSWDataResidue dCBWDataTransferLength dCSWDataResidue CBW IN/OUT IN/OUT IN/OUT CSW … Amount of data planned by the host Amount of data planned by the device Amount of data planned by the device Amount of data planned by the device Amount of data planned by the host Amount of data planned by the host Command transport Data transport Status transport Insufficient Exceeding 0 is returned because it is equal to the amount of data planned by the host The amount of data insufficient for that planned by the host is returned The amount of data exceeding that planned by the host is returned Figure 11 Each Stage in Bulk-Only Transport |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |