This directory contains an implementation of a USB Mass Storage Class Driver implemented on top of the USB Host Library.
MSC driver allows access to USB flash drivers using the BOT “Bulk-Only Transport” protocol and the Transparent SCSI command set.
usb_host_install
usb_host_lib_handle_events
periodically.
In general, an application should spawn a dedicated task handle USB Host Library events.
However, in order to save RAM, an already existing task can also be used to call usb_host_lib_handle_events
.usb_msc_install
function along side with configuration.usb_msc_handle_events
function from already existing task.MSC_DEVICE_CONNECTED
event, user has to install device with usb_msc_install_device
function,
obtaining MSC device handle.usb_msc_print_descriptors
and general information about MSC device retrieved
with from usb_msc_get_device_info
function.usb_msc_vfs_register
mounting USB Disk to Virtual filesystem.fopen
, fwrite
, fread
, mkdir
etc.) can be carried out.After connecting composite USB device, driver prints COMPOSITE DEVICES UNSUPPORTED
Copy to Clipboard
idf.py add-dependency "espressif/usb_host_msc^1.0.3"
Copy to Clipboard
Copy to Clipboard