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_lib_handle_eventsperiodically. 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_msc_installfunction along side with configuration.
usb_msc_handle_eventsfunction from already existing task.
MSC_DEVICE_CONNECTEDevent, user has to install device with
usb_msc_install_devicefunction, obtaining MSC device handle.
usb_msc_print_descriptorsand general information about MSC device retrieved with
usb_msc_vfs_registermounting USB Disk to Virtual filesystem.
mkdiretc.) can be carried out.
After connecting composite USB device, driver prints
COMPOSITE DEVICES UNSUPPORTED