Overview of Ux_Host_DualClass Application
mainThe Ux_Host_DualClass application demonstrates the usage of the Azure RTOS USBX stack on STM32U575xx devices. It functions as a dual-class USB Host capable of simultaneously supporting:
- USB HID Host: Enumerates and communicates with Human Interface Devices like a Mouse (decoding x/y position, wheel, and buttons) or a Keyboard (decoding pressed keys). Data is displayed via UART HyperTerminal.
- USB MSC Host: Operates with USB flash disks using Bulk Only Transfer (BOT) and SCSI commands, integrated with the AzureRTOS FILEX file system to perform file operations (Create, Write, Read, Close).
The application initializes USBx resources and registers MSC and HID Class drivers during the tx_application_define() phase. It utilizes four specific threads:
usbx_app_thread_entry(Priority 10): Initializes USB OTG HAL HCD driver and starts the Host.hid_mouse_thread_entry(Priority 30): Decodes mouse HID reports.hid_keyboard_thread_entry(Priority 30): Decodes keyboard HID reports.msc_process_thread_entry(Priority 30): Handles file system operations.