embassy-usb-host

Crates

git

Versions

default

Flavors

Module channel

Module channel 

Source
Expand description

Type-level channel markers for endpoint type and direction.

These structs and traits are used as generic parameters on UsbChannel to statically enforce correct endpoint type and direction at compile time.

All marker traits are sealed — they cannot be implemented outside this crate.

Structs§

Bulk
Marker for a bulk endpoint channel.
Control
Marker for a control endpoint channel.
In
Marker for an IN-only (device-to-host) channel.
InOut
Marker for a bidirectional channel (used for control endpoints).
Interrupt
Marker for an interrupt endpoint channel.
Isochronous
Marker for an isochronous endpoint channel.
Out
Marker for an OUT-only (host-to-device) channel.

Traits§

Direction
Marker trait for the transfer direction of a channel.
IsControl
Trait bound satisfied only by Control channels.
IsIn
Trait bound satisfied by directions that support IN transfers.
IsInterrupt
Trait bound satisfied only by Interrupt channels.
IsOut
Trait bound satisfied by directions that support OUT transfers.
Type
Marker trait for the endpoint transfer type of a channel.