Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 47 of 157
Apr 1, 2013
R_usb_cstd_UsbIpInit
Initialize the USB module
Format
void R_usb_cstd_UsbIpInit ( USB_UTR_t *ptr )
Argument
*ptr Pointer to a USB Transfer Structure
Return Value
-
Description
Initialize the USB IP module specified by the USB Transfer Structure.
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. The user must call this function from the user application during initialization.
Example
void usb_smp_init( void )
{
:
USB_UTR_t utr;
:
utr.ip = USB_HOST_USBIP_NUM;
utr.ipp = R_usb_cstd_GetUsbIpAdr(USB_HOST_USBIP_NUM );
:
R_usb_cstd_UsbIpInit( &utr );
:
}