Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 14 of 55
Aug 10, 2011
3.7 HMSCD
Structures
Tables 3.4 and 3.5 show the contents of the HMSCD structures.
Table 3.4 USBC_MSC_CBW_t Structure
Member Name
Description
Remarks
uint32_t
dCBWSignature
CBW Signature
0x55534243: USBC
uint32_t
dCBWTag
CBW Tag
Tag corresponding to CSW
uint8_t dCBWDTL_Lo
uint8_t dCBWDTL_ML
uint8_t dCBWDTL_MH
uint8_t dCBWDTL_Hi
CBW DataTransfer Length
Data length of transmit/receive data
uint8_t bmCBWFlags
CBW
Direction
Data transmit/receive direction
uint8_t
bCBWLUN
Logical Unit Number
Unit number
uint8_t
bCBWCBLength
CBWCB Length
Command length
uint8_t CBWCB[16]
CBWCB
Command
block
Table 3.5 USBC_MSC_CSW_t Structure
Member Name
Description
Remarks
uint32_t dCSWSignature
CSW
Signature 0x55534253:
USBS
uint32_t
dCSWTag
CSW Tag
Tag corresponding to CBW
uint8_t dCSWDataResidue_Lo
uint8_t dCSWDataResidue_ML
uint8_t dCSWDataResidue_MH
uint8_t dCSWDataResidue_Hi
CSW DataResidue
Data length used
uint8_t bCSWStatus
CSW
Status Command
status
uint8_t
dummy
Dummy
Even number adjustment
Содержание R8A66597
Страница 56: ......