usb100.h File Reference

#include "ntddk.h"
#include <pshpack1.h>
#include <poppack.h>

Go to the source code of this file.

Data Structures

struct  _USB_COMMON_DESCRIPTOR
struct  _USB_CONFIGURATION_DESCRIPTOR
struct  _USB_DEVICE_DESCRIPTOR
struct  _USB_ENDPOINT_DESCRIPTOR
struct  _USB_INTERFACE_DESCRIPTOR
struct  _USB_STRING_DESCRIPTOR
struct  _USB_HUB_DESCRIPTOR
struct  _USB_CONFIGURATION_POWER_DESCRIPTOR
struct  _USB_INTERFACE_POWER_DESCRIPTOR

Defines

#define MAXIMUM_USB_STRING_LENGTH   255
#define USB_DEVICE_CLASS_RESERVED   0x00
#define USB_DEVICE_CLASS_AUDIO   0x01
#define USB_DEVICE_CLASS_COMMUNICATIONS   0x02
#define USB_DEVICE_CLASS_HUMAN_INTERFACE   0x03
#define USB_DEVICE_CLASS_MONITOR   0x04
#define USB_DEVICE_CLASS_PHYSICAL_INTERFACE   0x05
#define USB_DEVICE_CLASS_POWER   0x06
#define USB_DEVICE_CLASS_PRINTER   0x07
#define USB_DEVICE_CLASS_STORAGE   0x08
#define USB_DEVICE_CLASS_HUB   0x09
#define USB_DEVICE_CLASS_VENDOR_SPECIFIC   0xFF
#define USB_RESERVED_DESCRIPTOR_TYPE   0x06
#define USB_CONFIG_POWER_DESCRIPTOR_TYPE   0x07
#define USB_INTERFACE_POWER_DESCRIPTOR_TYPE   0x08
#define USB_REQUEST_GET_STATUS   0x00
#define USB_REQUEST_CLEAR_FEATURE   0x01
#define USB_REQUEST_SET_FEATURE   0x03
#define USB_REQUEST_SET_ADDRESS   0x05
#define USB_REQUEST_GET_DESCRIPTOR   0x06
#define USB_REQUEST_SET_DESCRIPTOR   0x07
#define USB_REQUEST_GET_CONFIGURATION   0x08
#define USB_REQUEST_SET_CONFIGURATION   0x09
#define USB_REQUEST_GET_INTERFACE   0x0A
#define USB_REQUEST_SET_INTERFACE   0x0B
#define USB_REQUEST_SYNC_FRAME   0x0C
#define USB_GETSTATUS_SELF_POWERED   0x01
#define USB_GETSTATUS_REMOTE_WAKEUP_ENABLED   0x02
#define BMREQUEST_HOST_TO_DEVICE   0
#define BMREQUEST_DEVICE_TO_HOST   1
#define BMREQUEST_STANDARD   0
#define BMREQUEST_CLASS   1
#define BMREQUEST_VENDOR   2
#define BMREQUEST_TO_DEVICE   0
#define BMREQUEST_TO_INTERFACE   1
#define BMREQUEST_TO_ENDPOINT   2
#define BMREQUEST_TO_OTHER   3
#define USB_DEVICE_DESCRIPTOR_TYPE   0x01
#define USB_CONFIGURATION_DESCRIPTOR_TYPE   0x02
#define USB_STRING_DESCRIPTOR_TYPE   0x03
#define USB_INTERFACE_DESCRIPTOR_TYPE   0x04
#define USB_ENDPOINT_DESCRIPTOR_TYPE   0x05
#define USB_DESCRIPTOR_MAKE_TYPE_AND_INDEX(d, i)   ((USHORT)((USHORT)d << 8 | i))
#define USB_CONFIG_POWERED_MASK   0xc0
#define USB_CONFIG_BUS_POWERED   0x80
#define USB_CONFIG_SELF_POWERED   0x40
#define USB_CONFIG_REMOTE_WAKEUP   0x20
#define USB_ENDPOINT_DIRECTION_MASK   0x80
#define USB_ENDPOINT_DIRECTION_OUT(x)   (!((x) & USB_ENDPOINT_DIRECTION_MASK))
#define USB_ENDPOINT_DIRECTION_IN(x)   ((x) & USB_ENDPOINT_DIRECTION_MASK)
#define USB_ENDPOINT_TYPE_MASK   0x03
#define USB_ENDPOINT_TYPE_CONTROL   0x00
#define USB_ENDPOINT_TYPE_ISOCHRONOUS   0x01
#define USB_ENDPOINT_TYPE_BULK   0x02
#define USB_ENDPOINT_TYPE_INTERRUPT   0x03
#define USB_FEATURE_ENDPOINT_STALL   0x0000
#define USB_FEATURE_REMOTE_WAKEUP   0x0001
#define USB_SUPPORT_D0_COMMAND   0x01
#define USB_SUPPORT_D1_COMMAND   0x02
#define USB_SUPPORT_D2_COMMAND   0x04
#define USB_SUPPORT_D3_COMMAND   0x08
#define USB_SUPPORT_D1_WAKEUP   0x10
#define USB_SUPPORT_D2_WAKEUP   0x20
#define USB_FEATURE_INTERFACE_POWER_D0   0x0002
#define USB_FEATURE_INTERFACE_POWER_D1   0x0003
#define USB_FEATURE_INTERFACE_POWER_D2   0x0004
#define USB_FEATURE_INTERFACE_POWER_D3   0x0005

Typedefs

typedef _USB_COMMON_DESCRIPTOR USB_COMMON_DESCRIPTOR
typedef _USB_COMMON_DESCRIPTORPUSB_COMMON_DESCRIPTOR
typedef _USB_CONFIGURATION_DESCRIPTOR USB_CONFIGURATION_DESCRIPTOR
typedef _USB_CONFIGURATION_DESCRIPTORPUSB_CONFIGURATION_DESCRIPTOR
typedef _USB_DEVICE_DESCRIPTOR USB_DEVICE_DESCRIPTOR
typedef _USB_DEVICE_DESCRIPTORPUSB_DEVICE_DESCRIPTOR
typedef _USB_ENDPOINT_DESCRIPTOR USB_ENDPOINT_DESCRIPTOR
typedef _USB_ENDPOINT_DESCRIPTORPUSB_ENDPOINT_DESCRIPTOR
typedef _USB_INTERFACE_DESCRIPTOR USB_INTERFACE_DESCRIPTOR
typedef _USB_INTERFACE_DESCRIPTORPUSB_INTERFACE_DESCRIPTOR
typedef _USB_STRING_DESCRIPTOR USB_STRING_DESCRIPTOR
typedef _USB_STRING_DESCRIPTORPUSB_STRING_DESCRIPTOR
typedef _USB_HUB_DESCRIPTOR USB_HUB_DESCRIPTOR
typedef _USB_HUB_DESCRIPTORPUSB_HUB_DESCRIPTOR
typedef _USB_CONFIGURATION_POWER_DESCRIPTOR USB_CONFIGURATION_POWER_DESCRIPTOR
typedef _USB_CONFIGURATION_POWER_DESCRIPTORPUSB_CONFIGURATION_POWER_DESCRIPTOR
typedef _USB_INTERFACE_POWER_DESCRIPTOR USB_INTERFACE_POWER_DESCRIPTOR
typedef _USB_INTERFACE_POWER_DESCRIPTORPUSB_INTERFACE_POWER_DESCRIPTOR


Define Documentation

#define BMREQUEST_CLASS   1

Definition at line 73 of file usb100.h.

#define BMREQUEST_DEVICE_TO_HOST   1

Definition at line 70 of file usb100.h.

#define BMREQUEST_HOST_TO_DEVICE   0

Definition at line 69 of file usb100.h.

#define BMREQUEST_STANDARD   0

Definition at line 72 of file usb100.h.

#define BMREQUEST_TO_DEVICE   0

Definition at line 76 of file usb100.h.

#define BMREQUEST_TO_ENDPOINT   2

Definition at line 78 of file usb100.h.

#define BMREQUEST_TO_INTERFACE   1

Definition at line 77 of file usb100.h.

#define BMREQUEST_TO_OTHER   3

Definition at line 79 of file usb100.h.

#define BMREQUEST_VENDOR   2

Definition at line 74 of file usb100.h.

#define MAXIMUM_USB_STRING_LENGTH   255

Definition at line 36 of file usb100.h.

#define USB_CONFIG_BUS_POWERED   0x80

Definition at line 97 of file usb100.h.

#define USB_CONFIG_POWER_DESCRIPTOR_TYPE   0x07

Definition at line 51 of file usb100.h.

#define USB_CONFIG_POWERED_MASK   0xc0

Definition at line 96 of file usb100.h.

#define USB_CONFIG_REMOTE_WAKEUP   0x20

Definition at line 99 of file usb100.h.

#define USB_CONFIG_SELF_POWERED   0x40

Definition at line 98 of file usb100.h.

#define USB_CONFIGURATION_DESCRIPTOR_TYPE   0x02

Definition at line 83 of file usb100.h.

#define USB_DESCRIPTOR_MAKE_TYPE_AND_INDEX ( d,
 )     ((USHORT)((USHORT)d << 8 | i))

Definition at line 93 of file usb100.h.

#define USB_DEVICE_CLASS_AUDIO   0x01

Definition at line 39 of file usb100.h.

#define USB_DEVICE_CLASS_COMMUNICATIONS   0x02

Definition at line 40 of file usb100.h.

#define USB_DEVICE_CLASS_HUB   0x09

Definition at line 47 of file usb100.h.

#define USB_DEVICE_CLASS_HUMAN_INTERFACE   0x03

Definition at line 41 of file usb100.h.

#define USB_DEVICE_CLASS_MONITOR   0x04

Definition at line 42 of file usb100.h.

#define USB_DEVICE_CLASS_PHYSICAL_INTERFACE   0x05

Definition at line 43 of file usb100.h.

#define USB_DEVICE_CLASS_POWER   0x06

Definition at line 44 of file usb100.h.

#define USB_DEVICE_CLASS_PRINTER   0x07

Definition at line 45 of file usb100.h.

#define USB_DEVICE_CLASS_RESERVED   0x00

Definition at line 38 of file usb100.h.

#define USB_DEVICE_CLASS_STORAGE   0x08

Definition at line 46 of file usb100.h.

#define USB_DEVICE_CLASS_VENDOR_SPECIFIC   0xFF

Definition at line 48 of file usb100.h.

#define USB_DEVICE_DESCRIPTOR_TYPE   0x01

Definition at line 82 of file usb100.h.

#define USB_ENDPOINT_DESCRIPTOR_TYPE   0x05

Definition at line 86 of file usb100.h.

#define USB_ENDPOINT_DIRECTION_IN (  )     ((x) & USB_ENDPOINT_DIRECTION_MASK)

Definition at line 134 of file usb100.h.

#define USB_ENDPOINT_DIRECTION_MASK   0x80

Definition at line 131 of file usb100.h.

#define USB_ENDPOINT_DIRECTION_OUT (  )     (!((x) & USB_ENDPOINT_DIRECTION_MASK))

Definition at line 133 of file usb100.h.

#define USB_ENDPOINT_TYPE_BULK   0x02

Definition at line 140 of file usb100.h.

#define USB_ENDPOINT_TYPE_CONTROL   0x00

Definition at line 138 of file usb100.h.

#define USB_ENDPOINT_TYPE_INTERRUPT   0x03

Definition at line 141 of file usb100.h.

#define USB_ENDPOINT_TYPE_ISOCHRONOUS   0x01

Definition at line 139 of file usb100.h.

#define USB_ENDPOINT_TYPE_MASK   0x03

Definition at line 137 of file usb100.h.

#define USB_FEATURE_ENDPOINT_STALL   0x0000

Definition at line 154 of file usb100.h.

#define USB_FEATURE_INTERFACE_POWER_D0   0x0002

Definition at line 211 of file usb100.h.

#define USB_FEATURE_INTERFACE_POWER_D1   0x0003

Definition at line 212 of file usb100.h.

#define USB_FEATURE_INTERFACE_POWER_D2   0x0004

Definition at line 213 of file usb100.h.

#define USB_FEATURE_INTERFACE_POWER_D3   0x0005

Definition at line 214 of file usb100.h.

#define USB_FEATURE_REMOTE_WAKEUP   0x0001

Definition at line 155 of file usb100.h.

#define USB_GETSTATUS_REMOTE_WAKEUP_ENABLED   0x02

Definition at line 67 of file usb100.h.

#define USB_GETSTATUS_SELF_POWERED   0x01

Definition at line 66 of file usb100.h.

#define USB_INTERFACE_DESCRIPTOR_TYPE   0x04

Definition at line 85 of file usb100.h.

#define USB_INTERFACE_POWER_DESCRIPTOR_TYPE   0x08

Definition at line 52 of file usb100.h.

#define USB_REQUEST_CLEAR_FEATURE   0x01

Definition at line 55 of file usb100.h.

#define USB_REQUEST_GET_CONFIGURATION   0x08

Definition at line 60 of file usb100.h.

#define USB_REQUEST_GET_DESCRIPTOR   0x06

Definition at line 58 of file usb100.h.

#define USB_REQUEST_GET_INTERFACE   0x0A

Definition at line 62 of file usb100.h.

#define USB_REQUEST_GET_STATUS   0x00

Definition at line 54 of file usb100.h.

#define USB_REQUEST_SET_ADDRESS   0x05

Definition at line 57 of file usb100.h.

#define USB_REQUEST_SET_CONFIGURATION   0x09

Definition at line 61 of file usb100.h.

#define USB_REQUEST_SET_DESCRIPTOR   0x07

Definition at line 59 of file usb100.h.

#define USB_REQUEST_SET_FEATURE   0x03

Definition at line 56 of file usb100.h.

#define USB_REQUEST_SET_INTERFACE   0x0B

Definition at line 63 of file usb100.h.

#define USB_REQUEST_SYNC_FRAME   0x0C

Definition at line 64 of file usb100.h.

#define USB_RESERVED_DESCRIPTOR_TYPE   0x06

Definition at line 50 of file usb100.h.

#define USB_STRING_DESCRIPTOR_TYPE   0x03

Definition at line 84 of file usb100.h.

#define USB_SUPPORT_D0_COMMAND   0x01

Definition at line 187 of file usb100.h.

#define USB_SUPPORT_D1_COMMAND   0x02

Definition at line 188 of file usb100.h.

#define USB_SUPPORT_D1_WAKEUP   0x10

Definition at line 192 of file usb100.h.

#define USB_SUPPORT_D2_COMMAND   0x04

Definition at line 189 of file usb100.h.

#define USB_SUPPORT_D2_WAKEUP   0x20

Definition at line 193 of file usb100.h.

#define USB_SUPPORT_D3_COMMAND   0x08

Definition at line 190 of file usb100.h.


Typedef Documentation

typedef struct _USB_COMMON_DESCRIPTOR * PUSB_COMMON_DESCRIPTOR

typedef struct _USB_CONFIGURATION_DESCRIPTOR * PUSB_CONFIGURATION_DESCRIPTOR

typedef struct _USB_CONFIGURATION_POWER_DESCRIPTOR * PUSB_CONFIGURATION_POWER_DESCRIPTOR

typedef struct _USB_DEVICE_DESCRIPTOR * PUSB_DEVICE_DESCRIPTOR

typedef struct _USB_ENDPOINT_DESCRIPTOR * PUSB_ENDPOINT_DESCRIPTOR

typedef struct _USB_HUB_DESCRIPTOR * PUSB_HUB_DESCRIPTOR

typedef struct _USB_INTERFACE_DESCRIPTOR * PUSB_INTERFACE_DESCRIPTOR

typedef struct _USB_INTERFACE_POWER_DESCRIPTOR * PUSB_INTERFACE_POWER_DESCRIPTOR

typedef struct _USB_STRING_DESCRIPTOR * PUSB_STRING_DESCRIPTOR

typedef struct _USB_COMMON_DESCRIPTOR USB_COMMON_DESCRIPTOR

typedef struct _USB_CONFIGURATION_DESCRIPTOR USB_CONFIGURATION_DESCRIPTOR

typedef struct _USB_CONFIGURATION_POWER_DESCRIPTOR USB_CONFIGURATION_POWER_DESCRIPTOR

typedef struct _USB_DEVICE_DESCRIPTOR USB_DEVICE_DESCRIPTOR

typedef struct _USB_ENDPOINT_DESCRIPTOR USB_ENDPOINT_DESCRIPTOR

typedef struct _USB_HUB_DESCRIPTOR USB_HUB_DESCRIPTOR

typedef struct _USB_INTERFACE_DESCRIPTOR USB_INTERFACE_DESCRIPTOR

typedef struct _USB_INTERFACE_POWER_DESCRIPTOR USB_INTERFACE_POWER_DESCRIPTOR

typedef struct _USB_STRING_DESCRIPTOR USB_STRING_DESCRIPTOR


Generated on Mon Mar 5 20:44:20 2007 for usbp by  doxygen 1.5.1-p1