Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 92 of 157
Apr 1, 2013
R_usb_hstd_DriverRegistration
Register HDCD
Format
void R_usb_hstd_DriverRegistration (USB_UTR_t *ptr, USB_HCDREG_t *callback)
Argument
*ptr Pointer to USB transfer structure
*callback Pointer to class driver structure
Return Value
- -
Description
This function registers the HDCD information, which is registered in the class driver structure, in the HCD.
It then updates the number of registered drivers controlled by HCD, and registers HDCD in a new area.
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 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 application during initialization.
3. Refer to
Table 5.9 USB_HCDREG_t structure for details about registration information.
Example
void usb_smp_registration(USB_UTR_t *ptr)
{
USB_HCDREG_t driver;
:
(Register information of HDCD to driver)
:
R_usb_hstd_DriverRegistration(ptr, &driver);
}