Renesas USB Device
USB Host Mass Storage Class Driver
R01AN0513EJ0110 Rev.1.10
Page 24 of 55
Aug 10, 2011
Table 4.9
R_usb_ hmsc_GetMaxUnit()
Name
GetMaxUnit Request Execution
Call format
uint16_t R_usb_ hmsc_GetMaxUnit(uint16_t addr) : for uITRON
Arguments uint16_t
addr
Device
address
Return values
uint16_t
USBC_DONE
GetMaxLUN
not
supported
USBC_ERROR
Error end
Other
Max
unit
count
Call format
USBC_ER_t R_usb_ hmsc_GetMaxUnit(uint16_t addr, USBC_CB_t complete) : for non-
OS
uint16_t addr
Device
address
Arguments
USBC_CB_t complete Callback
function
Return values
USBC_ER_t
USBC_E_OK
GetMaxLUN request is
executed
USBC_E_ERROR Error
end
USBC_E_QOVR Error
end
Description
GetMaxUnit request is executed to get the max unit count.
Notes
Table 4.10 R_usb_hmsc_MassStorageReset()
Name
MassStorageReset Request Execution
Call format
uint16_t R_usb_hmsc_MassStorageReset(uint16_t drvnum) : for uITRON
Arguments uint16_t
drvnum Drive
number
Return values
uint16_t
USBC_DONE
Normal end
Call format
USBC_ER_t R_usb_hmsc_MassStorageReset(uint16_t drvnum, USBC_CB_t
complete) : for nonOS
uint16_t drvnum
Drive
number
Arguments
USBC_CB_t complete Callback
function
Return values
USBC_ER_t
USBC_E_OK
MassStorageReset request is
executed
USBC_E_ERROR Error
end
USBC_E_QOVR Error
end
Description
MASS_STORAGE_RESET request is executed to cancel a protocol error.
Notes
Table 4.11 usb_hmsc_TransResult()
Name
HCD Data Communication Result Call-Back
Call format
void usb_hmsc_TransResult(USBC_UTR_t *mess)
Arguments
USBC_UTR_t
*mess
Message to transmit to own task
Return values
void
Description
Uses the SND_MSG system call to transmit the argument to the driver’s own task.
Notes
Содержание R8A66597
Страница 56: ......