#usb #no-std #data-transfer

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

#32 in #data-transfer

Download history 6/week @ 2023-12-24 3/week @ 2023-12-31 14/week @ 2024-01-07 2/week @ 2024-01-14 3/week @ 2024-02-04 4/week @ 2024-02-11 12/week @ 2024-02-18 39/week @ 2024-02-25 18/week @ 2024-03-03 19/week @ 2024-03-10 17/week @ 2024-03-17 19/week @ 2024-03-24 53/week @ 2024-03-31

113 downloads per month
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
~41K SLoC