Skip to main content

Module endpoint

Module endpoint 

Source
Expand description

Endpoint handles owned by the device stack.

Endpoint (and its type aliases EndpointIn / EndpointOut) provide type-safe access to an individual USB endpoint. A class constructor receives a reference to the 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.

Type Aliases§

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