| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#pragma once |
| 25 |
|
| 26 |
#include <PSHPACK1.H> |
| 27 |
|
| 28 |
typedef struct _USB_CONFIGURATION_DESCRIPTOR { |
| 29 |
UCHAR bLength; |
| 30 |
UCHAR bDescriptorType; |
| 31 |
USHORT wTotalLength; |
| 32 |
UCHAR bNumInterfaces; |
| 33 |
UCHAR bConfigurationValue; |
| 34 |
UCHAR iConfiguration; |
| 35 |
UCHAR bmAttributes; |
| 36 |
UCHAR MaxPower; |
| 37 |
} USB_CONFIGURATION_DESCRIPTOR, *PUSB_CONFIGURATION_DESCRIPTOR; |
| 38 |
|
| 39 |
typedef struct _USB_DEVICE_DESCRIPTOR { |
| 40 |
UCHAR bLength; |
| 41 |
UCHAR bDescriptorType; |
| 42 |
USHORT bcdUSB; |
| 43 |
UCHAR bDeviceClass; |
| 44 |
UCHAR bDeviceSubClass; |
| 45 |
UCHAR bDeviceProtocol; |
| 46 |
UCHAR bMaxPacketSize0; |
| 47 |
USHORT idVendor; |
| 48 |
USHORT idProduct; |
| 49 |
USHORT bcdDevice; |
| 50 |
UCHAR iManufacturer; |
| 51 |
UCHAR iProduct; |
| 52 |
UCHAR iSerialNumber; |
| 53 |
UCHAR bNumConfigurations; |
| 54 |
} USB_DEVICE_DESCRIPTOR, *PUSB_DEVICE_DESCRIPTOR; |
| 55 |
|
| 56 |
#include <POPPACK.H> |
| 57 |
|
| 58 |
|
| 59 |
DEFINE_GUID(GUID_DEVINTERFACE_USB_HOST_CONTROLLER, 0x3abf6f2d, 0x71c4, 0x462a, 0x8a, 0x92, 0x1e, \ |
| 60 |
0x68, 0x61, 0xe6, 0xaf, 0x27); |
| 61 |
|
| 62 |
#ifndef MAX_DEVICE_ID_LEN |
| 63 |
# define MAX_DEVICE_ID_LEN 200 |
| 64 |
#endif |