embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module class

Module class 

Source
Expand description

Host class driver traits and shared error types.

A host class driver does two things:

  1. HostClass::probe inspects the enumerated device and its configuration descriptor and returns a small, owned Info value when the class is present.
  2. HostClass::open allocates the pipes described by Info and performs any class-specific setup (for example SET_INTERFACE).

The split keeps matching synchronous and side-effect free while allowing opening to be async.

Re-exports§

pub use super::descriptor::ClassCode;
pub use super::descriptor::ClassMatch;

Enums§

ClassError
Shared error type for host class drivers.

Traits§

HostClass
A host class driver that can be opened from an enumerated device.