embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module device

Module device 

Source
Expand description

Generic Vendor-specific bulk USB class device implementation.

Provides raw bulk endpoint data transfer between device and host. Optionally includes:

  • Microsoft OS 2.0 descriptors for automatic driverless WinUSB binding on Windows 8.1+.
  • WebUSB BOS platform capability descriptor and landing URL descriptor for browser access.
  • Async stream I/O via the embedded-io-async traits (Read and Write).

Structs§

BufferedReceiver
Vendor class buffered receiver for stream-like reads.
Config
Configuration for the Vendor class.
Receiver
Vendor class packet receiver.
Sender
Vendor class packet sender.
State
Internal state for the Vendor USB class.
Url
URL descriptor for WebUSB landing page.
VendorClass
Vendor-specific bulk USB class.

Enums§

VendorError
Vendor class error.

Constants§

USB_CLASS_VENDOR
USB class code for Vendor Specific devices (0xFF).
USB_PROTOCOL_NONE
Default protocol code (none/vendor-specific).
USB_SUBCLASS_NONE
Default subclass code (none/vendor-specific).