Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 25 of 55
Aug 10, 2011
Table 4.12 usb_hmsc_TransWaitTmo()
Name
Wait for HCD Data Communication End or Timeout
Call format
uint16_t usb_hmsc_TransWaitTmo(uint16_t tmo)
Arguments
uint16_t
tmo
Timeout duration (ms)
Return values
uint16_t
Status
Description
Uses the TRCV_MSG system call to wait for receipt of a message.
Notes
Table 4.13 usb_hmsc_ProcessResult()
Name
HCD Processing Result Call-Back
Call format
void usb_hmsc_ProcessResult(uint16_t data, uint16_t dummy)
uint16_t data
Status
Arguments
uint16_t dummy
Not
used
Return values
void
Description
Uses the SND_MSG system call to transmit the argument to the driver’s own task.
Notes
The message is fetched from the HMSCD area (PGET_BLK).
Table 4.14 usb_hmsc_ProcessWaitTmo()
Name
Wait for HCD Processing End or Timeout
Call format
uint16_t usb_hmsc_ProcessWaitTmo(void)
Arguments
uint16_t
tmo
Timeout duration (ms)
Return values
uint16_t
Status
Description
Uses the TRCV_MSG system call to wait for receipt of a message.
Notes
The message in the HMSCD area is released (REL_BLK).
Table 4.15 usb_hmsc_Submitutr()
Name
Start Data Transfer
Call format
USBC_ER_t usb_hmsc_Submitutr(uint16_t type, USBC_UTR_t *utr_table)
uint16_t
type
Either control transfer or data transfer
Arguments
USBC_UTR_t
*utr_table
Messages sent to HCD for USB communication
Return values
USB_ER_t
Description
Starts a data transfer.
Notes
Table 4.16 R_usb_ hmsc_ClearStall()
Name Clear
STALL
Call format
void R_usb_ hmsc_ClearStall(uint16_t type, uint16_t msgnum) : for uITRON
uint16_t type
IN/OUT
communication
direction
Arguments
uint16_t msgnum
Driver
number
Return values
void
Call format
void R_usb_ hmsc_ClearStall(uint16_t type, uint16_t msgnum, USBC_CB_t complete) :
for non-OS
uint16_t type
IN/OUT
communication
direction
uint16_t msgnum
Driver
number
Arguments
USBC_CB_t complete Callback
function
Return values
void
Description
Releases a pipe from the stalled state.
Notes
Содержание R8A66597
Страница 56: ......