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

#2 in #mass

Download history 18/week @ 2024-02-21 35/week @ 2024-02-28 11/week @ 2024-03-06 8/week @ 2024-03-13 6/week @ 2024-03-27 12/week @ 2024-04-03 130/week @ 2024-04-10 87/week @ 2024-04-17

315 downloads per month

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
~46K SLoC