Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 32 of 157
Apr 1, 2013
R_usb_pstd_PcdClose()
End PCD task
Format
USB_ER_t R_usb_pstd_PcdClose(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]
No processing.
Return value is always USB_E_OK.
[RTOS]
Ending PCD task.
Note
1. Besides above arguments, also set the following members of the USB Transfer Structure
USB_REGADR_t ipp :USB register base address
uint16_t ip :USB IP number
2. Call this function from the user application or class driver.
3. Please do not call this function after starting PCD task.
Example
void usb_smp_task()
{
USB_UTR_t *ptr;
:
R_usb_pstd_PcdClose(ptr);
:
}