4 releases (1 stable)

1.0.0 Apr 16, 2024
0.2.0 Feb 11, 2024
0.1.1 Feb 11, 2024
0.1.0 Apr 14, 2023
0.0.0 Mar 22, 2022

#715 in Hardware support

MIT license

56KB
1.5K SLoC

usbd-storage

Experimental USB Mass Storage implementation for usb-device.

Subclasses

Implemented subclasses:

  • SCSI device - number of SCSI commands is not exhaustive. Open a PR, if you want to add one.
  • USB Floppy Interface

It is possible to implement a vendor specific subclass.

Transports

Currently, only Bulk Only transport is implemented. It is possible to implement a vendor-specific transport.

Features

This crate has a couple of opt-in features that all could be used independently.

Feature Description
bbb Include Bulk Only Transport
scsi Include SCSI subclass
ufi Include USB Floppy Interface sublcass
defmt Enable logging via defmt crate

Examples

See examples


lib.rs:

USB Mass Storage implementation for usb-device

Subclasses:

Transports:

Features

Feature Description
bbb Include Bulk Only Transport
scsi Include SCSI subclass
ufi Include USB Floppy Interface sublcass
defmt Enable logging via defmt crate

Dependencies

~2.5MB
~48K SLoC