Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 82 of 157
Apr 1, 2013
R_usb_hstd_TransferStart
Data transfer request
Format
USB_ER_t R_usb_hstd_TransferStart (USB_UTR_t *ptr)
Argument
*ptr Pointer to USB transfer structure
Return Value
[non-OS]
USB_E_OK Success
USB_E_ERROR Failure
[RTOS]
Error code. Please refer to RI600/4 User's manual for RX family Real-time OS.
Description
This function requests HCD to execute data transfer(s) for the pipe specified in the Transfer Structure.
When the data transfer ends (specified data size reached, short packet received, error occurred), the call-back
function is called. The information of the remaining transmit/receive data length, status, error count and transfer end
is set in the argument to this call-back function.
Note
1. This function is not necessary when using the ANSI IO API.
2. Set the following members of the USB Transfer Structure before calling this function; ip, ipp, pipe number,
transfer data start address, transfer data length, status, and the call-back function to call at end of transfer.
3. Call this function from the user application or class driver (HDCD).
4. When the received data is n times of the maximum packet size and less than the expected received data length,
it is considered that the data transfer is not ended and a callback is not generated