embassy-usb-driver

Crates

git

Versions

default

Flavors

Module pipe

Module pipe 

Source
Expand description

Type-level pipe markers for endpoint type and direction.

These structs and traits are used as generic parameters on UsbPipe 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 pipe.
Control
Marker for a control endpoint pipe.
In
Marker for an IN-only (device-to-host) pipe.
InOut
Marker for a bidirectional pipe (used for control endpoints).
Interrupt
Marker for an interrupt endpoint pipe.
Isochronous
Marker for an isochronous endpoint pipe.
Out
Marker for an OUT-only (host-to-device) pipe.

Traits§

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