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.
- Endpoint
Address - 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).
- Endpoint
Type - 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§
- Endpoint
Dir - Marker trait for endpoint direction.
Type Aliases§
- Endpoint
In - A device-to-host (IN) endpoint handle.
- Endpoint
Out - A host-to-device (OUT) endpoint handle.