Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 22 of 55
Aug 10, 2011
4.4
HCI Interface Messages
Table 4.3 shows the HCI message structure.
Table 4.3 Interface Message Structure (USBC_UTR_t)
Format
Variable
Description
Remarks
USBC_MH_t msghead
Message header for SI7000/4
uITRON information area
uint16_t
msginfo
Message Info for F/W
HCD information area
uint16_t
keyword
Port number, pipe number, etc.
HCD information area
void
tranadr
Transfer data Start address
Transmit/receive data area
uint32_t tranlen
Transfer
data length
Transfer data size
uint16_t
*setup
Setup packet (for control only)
Setup packet address
uint16_t status
Transfer
status
HCD operation result
uint16_t pipectr
Status
of PIPECTR
SQMON state during pipe switching
USBC_CB_t Complete
Callback Function Address
Call-back run function
uint8_t errcnt
Error
count
Error information area used by HCD
uint8_t segment
Segment
information
Continuous communication
determination
4.5
HCI Function Details
Table 4.4
usb_hmsc_SendCbw()
Name Transmit
CBW
Call format
uint16_t usb_hmsc_SendCbw(uint16_t drvnum)
Arguments uint16_t
drvnum Drive
number
Return values
uint16_t
USBC_HMSC_OK
Normal
end
USBC_HMSC_CBW_ERR
CBW transfer error
USBC_HMSC_SUBMIT_ERR Submit
error
Description
Transmits the CBW.
When a STALL response is generated, reset recovery is executed.
Notes
Table 4.5
usb_hmsc_GetData()
Name Receive
Data
Call format
uint16_t usb_hmsc_GetData(uint16_t drvnum, uint8_t *buff, uint32_t size)
uint16_t drvnum
Drive
number
uint8_t *buff
Receive
data
area
Arguments
uint32_t size
Receive
data
size
Return values
uint16_t
USBC_HMSC_OK
Normal
end
USBC_HMSC_DAT_RD_ERR Receive
error
USBC_HMSC_SUBMIT_ERR Submit error
Description
Receives data.
When a STALL response is generated, the ClearFeature request is executed to continue
and the CSW is received.
Notes
Содержание R8A66597
Страница 56: ......