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.
- Device
Descriptor - The standard device descriptor (USB 2.0 §9.6.1).
- Endpoint
Descriptor - 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.