embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module device

Module device 

Source
Expand description

USB Mass Storage Class (MSC) implementation.

This implements the USB Bulk-Only Transport (BOT) protocol with a SCSI transparent command set suitable for a simple block device.

Structs§

BlockDeviceAdapter
Adapts a block_device_driver::BlockDevice with SIZE-byte blocks into an AsyncBlockDevice.
Config
Configuration for the USB Mass Storage Class.
MscClass
USB Mass Storage Class (MSC) implementation.
SectorCache
A cacheing wrapper for AsyncBlockDevice that aggregates writes to a device with large blocks, eliminating multiple flash read-erase-write cycles.
State
Internal state for the MSC class.

Enums§

StopReason
Why MscClass::run returned.

Traits§

AsyncBlockDevice
Async block device abstraction used by MscClass.
BlockDevice
Trait implemented by synchronous block devices used by MscClass.