Skip to main content

Module descriptor

Module descriptor 

Source
Expand description

Parsing of the descriptors a device returns.

Descriptors arrive as a flat byte string: the configuration descriptor is followed by its interface and endpoint descriptors, and class-specific descriptors may appear in between. Rather than copying them into a heap-allocated tree, Configuration keeps the bytes and lends out views over the parts that matter.

Structs§

Configuration
A configuration descriptor together with everything that follows it.
Descriptor
One descriptor of a configuration, header included.
Descriptors
Iterates over the descriptors stored back to back in a configuration.
DeviceDescriptor
The standard device descriptor (USB 2.0 §9.6.1).
EndpointDescriptor
A standard endpoint descriptor (USB 2.0 §9.6.6).
Endpoints
Iterates over the endpoints that follow an interface descriptor.
Interface
An interface descriptor, with its endpoints following it in the raw bytes.
Interfaces
Iterates over the interfaces of a configuration.