Expand description
USB descriptor parsers.
Modules§
- descriptor_
type - Standard descriptor type constants.
Structs§
- Configuration
Descriptor - USB Configuration Descriptor header with a reference to the sub-descriptor buffer.
- Device
Descriptor - USB Device Descriptor (18 bytes).
- Device
Descriptor Partial - First 8 bytes of the DeviceDescriptor, used to read
max_packet_size0before SET_ADDRESS. - Endpoint
Descriptor - USB Endpoint Descriptor (7 bytes).
- Endpoint
Iterator - Iterates over the endpoint descriptors of an interface.
- Interface
Descriptor - USB Interface Descriptor with a reference to the trailing sub-descriptor buffer.
- Interface
Iterator - Iterates over the InterfaceDescriptors of a configuration.
- RawDescriptor
Iterator - Iterates over raw descriptors, yielding
(byte_offset, &[u8]).
Enums§
Traits§
- USBDescriptor
- Trait for fixed-size USB descriptors that can be parsed from a byte slice.