Skip to main content

Module device

Module device 

Source
Expand description

USB device state machine and builder.

Create a UsbDevice via UsbDeviceBuilder, then call poll frequently (every ≤ 10 ms) from the main loop or an interrupt handler.

Structs§

DeviceInfo
Static device metadata. Passed to UsbDeviceBuilder via the fluent API.
UsbDevice
USB composite device.
UsbDeviceBuilder
Builder for UsbDevice.

Enums§

DeviceState
High-level USB device state.

Constants§

CONFIGURATION_NONE
The bConfiguration value when not configured.
CONFIGURATION_VALUE
The bConfiguration value for the single configuration we expose.
DEFAULT_ALTERNATE_SETTING
Default alternate setting.