eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
148 stars 88 forks source link

winsb suppport for usbx device #116

Closed mendez23 closed 10 months ago

mendez23 commented 10 months ago

Hello,

usbx device with vendor-specific interface can be managed from Windows via WinUSB generic driver and this driver gets loaded if the usbx device returns a string descriptor at index 0xEE. Is there a way to specify this in usbx? if not, which source file in usbx can be enhanced to add this functionality that the project requires?

Thank you!

xiaocq2001 commented 10 months ago

String descriptor format and example can be found here: https://github.com/azure-rtos/usbx/blob/7c928b43db68b72970b3effd5a2582eb5a6869c7/samples/demo_usbx.c#L87C1-L110C1

Documentation is here: https://learn.microsoft.com/en-us/azure/rtos/usbx/usbx-device-stack-3#definition-of-the-strings-of-the-device-framework

To support string index at 0xEE you can add a new entry in string framework.

mendez23 commented 10 months ago

@xiaocq2001 Thank you!