The Init function is used for initialization of the device.
It will be called automatically by the USB Host Core when new device
is attached and configured. The argument ctrl specifies the
controller index. The argument dev_idx specifies the device
instance index.
Initialization function has to do device specific initialization
(for example for Mass Storage Device it has to check if device is
ready or put the device into ready state), it also has to set Init
bit in Device Class Instance (USBH_DCI) structure to 1 after
initialization is successful.
You can modify this function to suit different class driver. This
function will need to be changed for class that does not have driver
provided.
Return Value
The Init function returns one of the following manifest
constants.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.