usb_protocol.types.descriptors.standard module

Structures describing standard USB descriptors. Versions that support parsing incomplete binary data are available as DescriptorType.Partial, e.g. DeviceDescriptor.Partial, and are collectively available in the usb_protocol.types.descriptors.partial.standard module (which, like the structs in this module, can also be imported without .standard).

class usb_protocol.types.descriptors.standard.DeviceCapabilityTypes(value)[source]

Bases: IntEnum

Numbers for the SuperSpeed standard Device Capabilities.

AUTHENTICATION = 14
BATTERY_INFO_CAPABILITY = 7
BILLBOARD = 13
BILLBOARD_EXTENSION = 15
CONFIGURATION_SUMMARY = 16
CONTAINER_ID = 4
PD_CONSUMER_PORT_CAPABILITY = 8
PD_PROVIDER_PORT_CAPABILITY = 9
PLATFORM = 5
POWER_DELIVERY_CAPABILITY = 6
PRECISION_TIME_MEASUREMENT = 11
SUPERSPEED_PLUS = 10
SUPERSPEED_USB = 3
USB_2_EXTENSION = 2
WIRELESS_USB = 1
WIRELESS_USB_EXTENSION = 12
class usb_protocol.types.descriptors.standard.StandardDescriptorNumbers(value)[source]

Bases: IntEnum

Numbers of our standard descriptors.

BOS = 15
CONFIGURATION = 2
DEBUG = 10
DEVICE = 1
DEVICE_CAPABILITY = 16
DEVICE_QUALIFIER = 6
ENDPOINT = 5
INTERFACE = 4
INTERFACE_ASSOCIATION = 11
INTERFACE_POWER = 8
OTG = 9
OTHER_SPEED = 7
OTHER_SPEED_DESCRIPTOR = 7
STRING = 3
SUPERSPEEDPLUS_ISOCHRONOUS_ENDPOINT_COMPANION = 49
SUPERSPEED_USB_ENDPOINT_COMPANION = 48