Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 89 of 157
Apr 1, 2013
R_usb_hstd_HcdOpen
Start HCD Task
Format
USB_ER_t R_usb_hstd_HcdOpen (USB_UTR_t *ptr)
Argument
*ptr Pointer to a USB Transfer Structure
Return Value
[non-OS]
USB_E_OK Success
[RTOS]
- Error code. Please refer to RI600/4 User's manual for RX family Real-time OS.
Description
[non-OS]
This function initializes (clears) the host’s pipe information.
Return value is USB_E_OK at any time.
[RTOS]
After initializing the pipe information, the function starts the HCD task. The HCD task then waits for requests from
the hardware, HDCD or MGR.
Note
1. Besides above arguments, also set the following members of the USB Transfer Structure before calling the
function.
USB_REGADR_t ipp :USB register base address
uint16_t ip :USB IP number
2. The user program should register the HDCD in the HCD and then call this function during initialization.
3. Do not call this function after starting the HCD task.
Example
USB_ER_t usb_smp_task(USB_UTR_t *ptr)
{
USB_UTR_t *ptr;
:
R_usb_hstd_HcdOpen(ptr);
:
}