The usbh_engine function handles USB host events. The argument ctrl is the index of USB Host Controller. It automatically executes enumeration when new device is connected and it uninitializes and releases resources when device is disconnected. The usbh_engine or usbh_engine_all function should be called periodically to enable proper response to USB host events. The usbh_engine function is part of the of the RL-USB Host software stack. |