Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 13 of 55
Aug 10, 2011
3.5
HMSCD Global Area
Table 3.2 lists details of the HMSCD global area.
Table 3.2 HMSCD Global Area
Format
Variable Name
Description
1 uint16_t
usb_ghmsc_AttSts
HMSCD operation state
2 USBC_MSC_CBW_t
usb_ghmsc_Cbw[USBC_MAXSTRAGE]
CBW transmit structure
3 USBC_MSC_CSW_t
usb_ghmsc_Csw[USBC_MAXSTRAGE]
CSW receive structure
4 uint32_t
usb_ghmsc_CswDataResidue[USBC_MAXSTRA
GE]
BOT protocol operation result
5 uint32_t
usb_ghmsc_CbwTagNo[USBC_MAXSTRAGE]
CBW tag data
6 uint8_t
usb_ghmsc_AtapiFlag[USBC_MAXSTRAGE] ATAPI/SCSI
operation
flag
3.6 HMSCD
Functions
Table 3.3 lists the functions of HMSCD.
Table 3.3 HMSCD Functions
Function Name
Description
1 usb_hmsc_SmpBotDescriptor()
Confirms mass storage class and BOT protocol.
2
usb_hmsc_SmpPipeInfo()
Makes pipe information table settings.
3
usb_hmsc_NoData()
NO DATA command Execution.
4 usb_hmsc_DataIn()
RECEIVE
DATA command Execution.
5
usb_hmsc_DataOut()
TRANSMIT DATA command Execution.
6 usb_hmsc_SetRwCbw()
Initializes CBW parameters for READ10 and WRITE10
commands.
7 usb_hmsc_SetElsCbw()
Initializes
CBW parameters for other commands.
8
usb_hmsc_CbwTagCount()
Updates tag information.
9
usb_hmsc_CheckCsw()
Checks if new CSW received.
10 R_usb_hmsc_SetDevSts()
Sets HMSCD operation state.
11 R_usb_hmsc_GetDevSts()
Returns HMSCD operation state.
12 R_usb_hmsc_Information()
Checks pipe information table.
13 usb_hmsc_Task
HMSC
Task
Содержание R8A66597
Страница 56: ......