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]). - Show
Descriptors - [
A DescriptorVisitor] that just logs the descriptors to the debug stream
Enums§
- Descriptor
Error - Visit
Error - Error returned by
ConfigurationDescriptor::visit_descriptors.
Traits§
- Descriptor
Visitor - Callback-based visitor for a configuration’s descriptor tree.
- USBDescriptor
- Trait for fixed-size USB descriptors that can be parsed from a byte slice.