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.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.