Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 86 of 157
Apr 1, 2013
R_usb_hstd_SetPipeRegistration
Pipe configuration setting request
Format
USB_ER_t R_usb_hstd_SetPipeRegistration (USB_UTR_t *ptr, uint16_t *table, uint16_t pipe)
Argument
*ptr Pointer to USB transfer structure
*table Pointer to pipe information table
pipe Pipe number
Return Value
Error code. (USB_E_OK)
Description
This function configures the hardware pipes. Each pipe is set according to the contents of the pipe information
registered during HDCD registration.
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 must call this function from the user’s application during initialization.
3. Refer to “
5.9.2 Pipe Information Table” for more details.
4. This function is not necessary when using an ANSI IO API.
Example
USB_ER_t usb_smp_task(USB_UTR_t *ptr)
{
R_usb_hstd_SetPipeRegistration(ptr, (uint16_t*)&usb_ smp_eptbl, USB_USEPIPE);
}