Crate usb

Source
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 or bInterfaceClass of an interface descriptor.
descriptor_type
Descriptor type, as used in the second byte of a descriptor or high byte of wValue in a GET_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 a SET_FEATURE or CLEAR_FEATURE request.
language_id
Language ID, as used in wIndex in a GET_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 a SET_FEATURE request.