#usb #no-std

no-std usbd_mass_storage

usb-device implementation that provides a USB mass storage class device

1 unstable release

0.1.0 Apr 21, 2020

#150 in #usb


Used in 4 crates (3 directly)

MIT/Apache

45KB
721 lines

usbd_mass_storage

Crate Documentation

usb-device implementation that provides a USB mass storage class device.

License

Free and open source software distributed under the terms of both the MIT License and the Apache License 2.0.


lib.rs:

Glossary

Term Description More Info
ZLP Zero length packet. Used to terminate the current data transfer when the final packet is full and the total data length is less than the header specified Section 5.5.3 USB 2.0 Bus Spec
CBW Command block wrapper. Header that contains information about the data that is expected to be sent/received next Section 5.1 USB Bulk Only Transport Spec
CSW Command status wrapper. Status sent after data transfer to indicate success/failure and confirm length of data sent Section 5.2 USB Bulk Only Transport Spec
Data Residue Data residue (bytes) is the difference in the length requested in the CBW and the actual amount of data sent/received Section 5.2 USB Bulk Only Transport Spec

Dependencies

~2MB
~45K SLoC