Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 31 of 157
Apr 1, 2013
R_usb_pstd_PcdOpen
Start PCD task
Format
USB_ER_t R_usb_pstd_PcdOpen (USB_UTR_t *ptr)
Arguments
*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 the pipe information.
Return value is always USB_E_OK.
[RTOS
After initializing the pipe information, the function starts the PCD task. The PCD task then waits for requests from
the hardware or PDCD.
Note
1. The user application should register the PDCD in the PCD and then call this function during initialization.
Please register the PDCD by using the function R_usb_pstd_DriverRegistration.
2. Please do not call this function after starting the PCD task
Example
void usb_smp_task()
{
USB_UTR_t *ptr;
R_usb_pstd_PcdOpen(ptr);
}