Host Control Driver Interface(Hci) Functions - Renesas X 600 Series Manual

Usb host mass storage class driver (hmsc)
Table of Contents

Advertisement

Renesas USB Device
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
1
USBC_UTR_t
usb_ghmsc_TransData[US
BC_MAXSTRAGE]
2
USBC_UTR_t
usb_ghmsc_ReceiveData[USBC_MAXSTRAGE]
3
USBC_UTR_t
usb_ghmsc_ControlData
4
uint16_t
usb_ghmsc_OutPipe [USBC_MAXSTRAGE][2]
5
uint16_t
usb_ghmsc_InPipe [USBC_MAXSTRAGE][2]
6
uint8_t
usb_ghmsc_Data[5120]
4.3
HCI Functions
Table 4.2 lists the functions of HCI.
Table 4.2
HCI Functions
Function Name
1
usb_hmsc_SendCbw()
2
usb_hmsc_GetData()
3
usb_hmsc_SendData()
4
usb_hmsc_GetCsw()
5
usb_hmsc_GetStringInfo()
6
R_usb_hmsc_GetMaxUnit()
7
R_usb_hmsc_MassStorageReset()
8
usb_hmsc_TransResult()
9
usb_hmsc_TransWaitTmo()
10
usb_hmsc_ProcessResult()
11
usb_hmsc_ProcessWaitTmo()
12
usb_hmsc_Submitutr()
13
R_usb_hmsc_ClearStall()
R01AN0513EJ0110 Rev.1.10
Aug 10, 2011
USB Host Mass Storage Class Driver(HMSC)
Description
Transmits CBW.
Receives data.
Transmits data.
Receives CBW.
GetDescriptor (string) request Execution.
Get_MaxUnit request Execution.
MassStorageReset request Execution.
Performs call-back of HCD data communication result.
Waits for HCD data communication end or timeout.
Performs call-back of HCD processing result.
Waits for HCD processing end or timeout.
Data transfer request execution to HCD.
STALL release request execution to HCD.
Description
Transmit data structure
Receive data structure
Control transfer structure
Pipe number using OUT direction
endpoint
Pipe number using IN direction
endpoint
Data transfer work area
Page 21 of 55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx62n groupR8a66597

Table of Contents