Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 132 of 157
Apr 1, 2013
R_ usb_hstd_HubRegistAll
Register HUBCD
Format
void R_ usb_hstd_HubRegistAll(USB_UTR_t *ptr, USB_HCDREG_t *callback)
Argument
*ptr Pointer to a USB Transfer Structure
*callback Pointer to Class driver structure
Return Value
- -
Description
The information on HUBCD is registered into a class driver structure. After registration is complete, the
initialization call-back function is executed.
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.
3. Refer to
Table 5.9 USB_HCDREG_t for details about registration information.
Example
void usb_smp_registration(USB_UTR_t *ptr)
{
USB_HCDREG_t driver;
:
R_usb_hhub_Registration(ptr, &driver);
:
}