Skip to main content

Module descriptor

Module descriptor 

Source
Expand description

USB descriptor vocabulary shared by both directions of the stack.

descriptor_type holds the bDescriptorType codes, class_code the bDeviceClass/bInterfaceClass codes and the cdc_* modules the CDC function descriptors. The device-side builder that writes descriptors into a configuration buffer lives in crate::device::descriptor.

Modules§

cdc_descriptor
CDC functional descriptors subtypes.
cdc_protocol
CDC interface protocols (bInterfaceProtocol).
cdc_subclass
CDC interface subclasses (bInterfaceSubClass).
class_code
USB class codes (bDeviceClass / bInterfaceClass).
descriptor_type
bDescriptorType values (USB 2.0 §9.4).
hub
Hub class constants (USB 2.0 §11.24).
lang_id
USB language IDs (ISO 639).