Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 23 of 55
Aug 10, 2011
Table 4.6
usb_hmsc_SendData()
Name Transmit
Data
Call format
uint16_t usb_hmsc_SendData(uint16_t drvnum, uint8_t *buff, uint32_t size)
uint16_t drvnum
Drive
number
uint8_t
*buff
Transmit data area
Arguments
uint32_t
size
Transmit data size
Return values
uint16_t
USBC_HMSC_OK
Normal
end
USBC_HMSC_DAT_WR_ERR Transmit error
USBC_HMSC_SUBMIT_ERR Submit error
Description
Transmits data.
When a STALL response is generated, the ClearFeature request is executed to continue
and the CSW is received.
Notes
Table 4.7
usb_hmsc_GetCsw()
Name Receive
CSW
Call format
uint16_t usb_hmsc_GetCsw(uint16_t drvnum)
Arguments uint16_t
drvnum
Drive
number
Return values
uint16_t
USBC_HMSC_OK
Normal
end
USBC_HMSC_CSW_ERR
CBW transfer error
USBC_HMSC_SUBMIT_ERR
Submit
error
USBC_HMSC_CSW_PHASE_ERR Phase
error
Description
Receives the CSW.
When a STALL response is generated, the ClearFeature request is executed and the CSW
is received again.
When a phase error is received, reset recovery is executed.
Notes
Table 4.8
usb_hmsc_GetStringInfo()
Name GetDescriptor
(String) Request Execution
Call format
uint16_t usb_hmsc_GetStringInfo(uint16_t devaddr, uint8_t *table)
uint16_t devaddr
Device
address
Arguments
uint8_t
*table
Device descriptor storage pointer
Return values
uint16_t
USBC_DONE
Normal
end
USBC_ERROR Error end
Description
GetDescriptor (string) request is executed to get the serial number.
Notes
Содержание R8A66597
Страница 56: ......