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
154 stars 89 forks source link

A question about using msc class #36

Closed derskop closed 2 years ago

derskop commented 2 years ago

Excuse me everybody, i have a question that I don't know which API to use to read and write the MSc class. Is the dpump class used for reading and writing.I don't know yet. thanks

xiaocq2001 commented 2 years ago

You can get reference here: https://github.com/azure-rtos/samples Or generate example from vendor SDK (e.g., from STM32 cube).

USBX MSC host storage is integrated with FileX, the storage device connected is mounted and you can use FileX to operate the files.

derskop commented 2 years ago

@xiaocq2001 en,thank you for you reply. i know USBX MSC host storage is integrated with FileX,but I still don't understand which usbx API connects to Filex

xiaocq2001 commented 2 years ago

You can refer to https://github.com/azure-rtos/usbx/blob/master/common/usbx_host_classes/src/ux_host_class_storage_driver_entry.c, this connects FileX operations with USBX.

derskop commented 2 years ago

thanks a lot @xiaocq2001

yuxin-azrtos commented 2 years ago

closing.