Expand description
Common definitions for USB constants from the USB specification:
Modulesยง
- capability_
type - Device Capability Type codes as used in the
bDevCapabilityType
field of the BOS Device Capability Descriptor. - class_
code - Base class codes, as used in the
bDeviceClass
of a device descriptor orbInterfaceClass
of an interface descriptor. - descriptor_
type - Descriptor type, as used in the second byte of a descriptor or high byte of
wValue
in aGET_DESCRIPTOR
request. - endpoint_
address bEndpointAddress
field of the endpoint descriptor.- endpoint_
attributes bmAttributes
field of the endpoint descriptor.- feature_
selector - Feature selector, as used in
wValue
of aSET_FEATURE
orCLEAR_FEATURE
request. - language_
id - Language ID, as used in
wIndex
in aGET_DESCRIPTOR
request - request_
type bmRequestType
field of the SETUP packet.- standard_
request - Standard requests, as used in the
bRequest
field of a setup packet. - test_
mode - Test mode, as used in the upper byte of
wIndex
of aSET_FEATURE
request.