Expand description
Common definitions for USB constants from the USB specification:
Modulesยง
- capability_
type - Device Capability Type codes as used in the
bDevCapabilityTypefield of the BOS Device Capability Descriptor. - class_
code - Base class codes, as used in the
bDeviceClassof a device descriptor orbInterfaceClassof an interface descriptor. - descriptor_
type - Descriptor type, as used in the second byte of a descriptor or high byte of
wValuein aGET_DESCRIPTORrequest. - endpoint_
address bEndpointAddressfield of the endpoint descriptor.- endpoint_
attributes bmAttributesfield of the endpoint descriptor.- feature_
selector - Feature selector, as used in
wValueof aSET_FEATUREorCLEAR_FEATURErequest. - language_
id - Language ID, as used in
wIndexin aGET_DESCRIPTORrequest - request_
type bmRequestTypefield of the SETUP packet.- standard_
request - Standard requests, as used in the
bRequestfield of a setup packet. - test_
mode - Test mode, as used in the upper byte of
wIndexof aSET_FEATURErequest.