The usbh_engine_all function handles USB hosts events. It
automatically executes enumeration when new device is connected and
it uninitializes and releases resources when device is disconnected.
The usbh_engine_all or usbh_engine function should be
called periodically to enable proper response to USB host events.
The usbh_engine function is part of the RL-USB Host
software stack.
#include <rl_usb.h>
int main (void) {
..
usbh_init_all(); // USB Hosts Initialize
..
while (1) {
..
usbh_engine_all(); // Handle USB Hosts events on all controllers
..
}
..
}
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.