1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 """USB constant definitions.
9 class DescriptorType(object):
12 See Universal Serial Bus Specification Revision 2.0 Table 9-5.
20 OTHER_SPEED_CONFIGURATION
= 7
23 class DeviceClass(object):
26 See http://www.usb.org/developers/defined_class.
44 class DeviceSubClass(object):
47 See http://www.usb.org/developers/defined_class.
53 class DeviceProtocol(object):
56 See http://www.usb.org/developers/defined_class.
62 class InterfaceClass(object):
65 See http://www.usb.org/developers/defined_class.
70 class InterfaceSubClass(object):
73 See http://www.usb.org/developers/defined_class.
78 class InterfaceProtocol(object):
81 See http://www.usb.org/developers/defined_class.
86 class TransferType(object):
89 See http://www.usb.org/developers/defined_class.
99 """Data transfer direction.
101 See Universal Serial Bus Specification Revision 2.0 Table 9-2.
110 See Universal Serial Bus Specification Revision 2.0 Table 9-2.
119 class Recipient(object):
120 """Request Recipient.
122 See Universal Serial Bus Specification Revision 2.0 Table 9-2.
131 class Request(object):
132 """Standard Request Codes.
134 See Universal Serial Bus Specification Revision 2.0 Table 9-4.
140 GET_DESCRIPTOR
= 0x06
141 SET_DESCRIPTOR
= 0x07
142 GET_CONFIGURATION
= 0x08
143 SET_CONFIGURATION
= 0x09
148 SET_ISOCH_DELAY
= 0x31
160 class VendorID(object):
164 class ProductID(object):
165 GOOGLE_TEST_GADGET
= 0x58F0
166 GOOGLE_KEYBOARD_GADGET
= 0x58F1
167 GOOGLE_MOUSE_GADGET
= 0x58F2
168 GOOGLE_HID_ECHO_GADGET
= 0x58F3
169 GOOGLE_ECHO_GADGET
= 0x58F4