Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 21 of 55
Aug 10, 2011
4. Host Control Driver Interface(HCI) Functions
4.1
Functions and Features
For the case of uITRON, until the drive is mounted, HCI uses the HCD class area to send and receive messages.
When mounting of the drive is finished, it uses the HMSCD dedicated area. For the case of non-OS,HCI uses the
HMSCD area to send and receive messages. And it is not possible to enumerate (or access) two devices simultaneously.
4.2
HCI Global Area
Table 4.1 lists details of the HCI global area.
Table 4.1 HCI Global Area
Format
Variable Name
Description
1 USBC_UTR_t
usb_ghmsc_TransData[US
BC_MAXSTRAGE]
Transmit data structure
2 USBC_UTR_t
usb_ghmsc_ReceiveData[USBC_MAXSTRAGE]
Receive data structure
3 USBC_UTR_t
usb_ghmsc_ControlData
Control transfer structure
4 uint16_t
usb_ghmsc_OutPipe [USBC_MAXSTRAGE][2]
Pipe number using OUT direction
endpoint
5 uint16_t
usb_ghmsc_InPipe [USBC_MAXSTRAGE][2]
Pipe number using IN direction
endpoint
6 uint8_t
usb_ghmsc_Data[5120]
Data transfer work area
4.3 HCI
Functions
Table 4.2 lists the functions of HCI.
Table 4.2 HCI Functions
Function Name
Description
1 usb_hmsc_SendCbw()
Transmits
CBW.
2 usb_hmsc_GetData()
Receives
data.
3 usb_hmsc_SendData()
Transmits
data.
4 usb_hmsc_GetCsw()
Receives
CBW.
5 usb_hmsc_GetStringInfo()
GetDescriptor (string) request Execution.
6
R_usb_hmsc_GetMaxUnit()
Get_MaxUnit request Execution.
7 R_usb_hmsc_MassStorageReset()
MassStorageReset request Execution.
8
usb_hmsc_TransResult()
Performs call-back of HCD data communication result.
9
usb_hmsc_TransWaitTmo()
Waits for HCD data communication end or timeout.
10 usb_hmsc_ProcessResult()
Performs
call-back of HCD processing result.
11 usb_hmsc_ProcessWaitTmo()
Waits for HCD processing end or timeout.
12 usb_hmsc_Submitutr()
Data
transfer request execution to HCD.
13 R_usb_hmsc_ClearStall()
STALL release request execution to HCD.
Содержание R8A66597
Страница 56: ......