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.
#include <rl_usb.h>
int main (void) {
..
usbh_init(0); // USB Host Initialize
..
while (1) {
..
usbh_engine(0); // Handle USB Host events on the controller 0
..
}
..
}
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.