Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 26 of 55
Aug 10, 2011
5. Device Driver Interface(DDI) Functions
5.1
Functions and Features
The DDI functions comprise the HMSCD start function, end function, check connected device function, and sample
storage command functions.
5.2 DDI
Functions
Table 5.1 lists the DDI functions.
Table 5.1 DDI Functions
Function Name
Description
1 R_usb_hmsc_Initialized()
Initializes an internal variable.
Either register this function in the MGR classinit call-back or
call it from a function registered in the classinit call-back.
2 R_usb_hmsc_ClassCheck()
Checks the descriptor table of the connected device to
determine whether or not HMSCD can operate. If operation
is possible, it updates the pipe information table with
information from the descriptor table.
Either register this function in the MGR classcheck call-
back or call it from a function registered in the classcheck
call-back.
3 R_usb_hmsc_TaskOpen()
Starts
HMSCD.
This function is called by the R_usb_hmsc_StrgTaskOpen()
function of HMSDD.
4
R_usb_ hmsc_TaskClose()
Closes HMSCD.
This function is called by the R_usb_hmsc_StrgTaskClose()
function of HMSDD.
5
R_usb_hmsc_Read10()
Issues the READ10 command.
6
R_usb_hmsc_Write10()
Issues the WRITE10 command.
7 R_usb_hmsc_PreventAllow()
Issues the PREVENT_ALLOW command.
8
R_usb_hmsc_TestUnit()
Issues the TEST_UNIT_READY command.
9
R_usb_hmsc_RequestSense()
Issues the REQUEST_SENSE command.
10 R_usb_hmsc_Inquiry()
Issues the INQUIRY command.
11 R_usb_hmsc_ReadCapacity()
Issues the READ_CAPACITY command.
12 R_usb_hmsc_ReadFormatCapacity()
Issues the READ_FORMAT_CAPACITY command.
13 R_usb_hmsc_ModeSense10()
Issues the MODE_SENSE10 command.
14 R_usb_hmsc_ModeSelect6()
Issues the MODE_SELECT6 command.
15 R_usb_hmsc_DriveSpeed()
Returns
the
communication speed of the drive.
16 R_usb_hmsc_Registration()
Registers HMSCD in HCD.
17 R_usb_hmsc_Release()
Releases HMSCD from HCD.
Содержание R8A66597
Страница 56: ......