Skip to main content

Module endpoint

Module endpoint 

Source
Expand description

USB endpoint types and handles.

Endpoint (and its type aliases EndpointIn / EndpointOut) provide type-safe access to an individual USB endpoint. A class constructor receives a reference to the crate::bus::UsbBusAllocator, which allocates endpoints and returns handles that borrow from that allocator. The owned bus inside the allocator is therefore kept alive for as long as any endpoint handle exists.

Structs§

Endpoint
A handle to a specific USB endpoint.
EndpointAddress
Type-safe USB endpoint address (number + direction encoded in one byte).
In
Direction marker for device-to-host (IN) endpoints.
Out
Direction marker for host-to-device (OUT) endpoints.

Enums§

Direction
USB transfer direction (host-centric: IN = device→host, OUT = host→device).
EndpointType
USB endpoint transfer type.
IsoSynchronization
Isochronous synchronization type (USB 2.0 §5.12.4.1).
IsoUsage
Isochronous usage type (USB 2.0 §9.6.6).

Traits§

EndpointDir
Marker trait for endpoint direction.

Type Aliases§

EndpointIn
A device-to-host (IN) endpoint handle.
EndpointOut
A host-to-device (OUT) endpoint handle.