Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 44 of 157
Apr 1, 2013
R_usb_pstd_SetStall
Set STALL to PID of PIPE with callback
Format
void R_usb_pstd_SetStall (USB_UTR_t *ptr, USB_UTR_t complete, uint16_t pipeno)
Argument
*ptr Pointer to a USB Transfer Structure
Complete Callback function
pipeno Pipe number
Return Value
- -
Description
Set STALL as PID of the pipe number specified by the argument. The callback function that is specified by
argument complete will be called when a stall packet has been sent.
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 the class driver.
Example
void usb_smp_task(USB_UTR_t *ptr)
{
:
R_usb_pstd_SetStall( ptr, (USB_CB_t)setstall_cb, pipeno );
:
}