Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

usbstd.h File Reference


Defines

#define USBSPEC   0x0110
#define GET_STATUS   0x00
#define CLEAR_FEATURE   0x01
#define SET_FEATURE   0x03
#define SET_ADDRESS   0x05
#define GET_DESCRIPTOR   0x06
#define SET_DESCRIPTOR   0x07
#define GET_CONFIGURATION   0x08
#define SET_CONFIGURATION   0x09
#define GET_INTERFACE   0x0a
#define SET_INTERFACE   0x0b
#define SYNCH_FRAME   0x0c
#define DEVICE_DESC   0x01
#define CONFIGURATION_DESC   0x02
#define STRING_DESC   0x03
#define INTERFACE_DESC   0x04
#define ENDPOINT_DESC   0x05
#define DEVICE_QUALIFIER_DESC   0x06
#define OTHER_SPEED_CONFIGURATION_DESC   0x07
#define INTERFACE_POWER_DESC   0x08
#define DEVICE_REMOTE_WAKEUP   0x0001
#define ENDPOINT_STALL   0x0000
#define TEST_MODE   0x0002
#define USB_TEST_J   0x01
#define USB_TEST_K   0x02
#define USB_TEST_SE0_NAK   0x03
#define USB_TEST_PACKET   0x04
#define USB_TEST_FORCE_ENABLE   0x05
#define HOST_TO_DEVICE   (0<<7)
#define DEVICE_TO_HOST   (1<<7)
#define STANDARD   (0<<5)
#define CLASS   (1<<5)
#define VENDOR   (2<<5)
#define RECIPIENT_DEVICE   0
#define RECIPIENT_INTERFACE   1
#define RECIPIENT_ENDPOINT   2
#define RECIPIENT_OTHER   3
#define CTRL   0x00
#define ISOC   0x01
#define BULK   0x02
#define INTR   0x03
#define EP_OUT   0x00
#define EP_IN   0x80
#define EP_DIRECTION_IN   7
#define MAX_DATA_ENDPOINTS_PER_DIRECTION   15
#define MAX_DATA_ENDPOINTS   (2*MAX_DATA_ENDPOINTS_PER_DIRECTION)
#define MAX_ENDPOINTS   (2*(MAX_DATA_ENDPOINTS_PER_DIRECTION + 1))
#define ENDPOINT_ADDRESS_MASK   0x0f
#define CONFIG_SELF_POWERED   6
#define CONFIG_REMOTE_WAKEUP   5
#define VENDOR_SPECIFIC   0xff
#define _bmRequestType   0
#define _bRequest   1
#define _wValueLo   2
#define _wValueHi   3
#define _wIndexLo   4
#define _wIndexHi   5
#define _wLengthLo   6
#define _wLengthHi   7
#define NEXT_USB_DESCRIPTOR(pDescr)   ((PBYTE)(pDescr)+((pDescr)->bLength))

Typedefs

typedef _USB_SETUP_PACKET USB_SETUP_PACKET
typedef _USB_SETUP_PACKETPUSB_SETUP_PACKET
typedef _USB_DEVICE_DESCRIPTOR USB_DEVICE_DESCRIPTOR
typedef _USB_DEVICE_DESCRIPTORPUSB_DEVICE_DESCRIPTOR
typedef _USB_CONFIGURATION_DESCRIPTOR USB_CONFIGURATION_DESCRIPTOR
typedef _USB_CONFIGURATION_DESCRIPTORPUSB_CONFIGURATION_DESCRIPTOR
typedef _USB_INTERFACE_DESCRIPTOR USB_INTERFACE_DESCRIPTOR
typedef _USB_INTERFACE_DESCRIPTORPUSB_INTERFACE_DESCRIPTOR
typedef _USB_ENDPOINT_DESCRIPTOR USB_ENDPOINT_DESCRIPTOR
typedef _USB_ENDPOINT_DESCRIPTORPUSB_ENDPOINT_DESCRIPTOR
typedef _USB_STRING_DESCRIPTOR USB_STRING_DESCRIPTOR
typedef _USB_STRING_DESCRIPTORPUSB_STRING_DESCRIPTOR
typedef _USB_DEVICE_QUALIFIER_DESCRIPTOR USB_DEVICE_QUALIFIER_DESCRIPTOR
typedef _USB_DEVICE_QUALIFIER_DESCRIPTORPUSB_DEVICE_QUALIFIER_DESCRIPTOR
typedef _USB_COMMON_DESCRIPTOR USB_COMMON_DESCRIPTOR
typedef _USB_COMMON_DESCRIPTORPUSB_COMMON_DESCRIPTOR

Define Documentation

#define _bmRequestType   0
 

#define _bRequest   1
 

#define _wIndexHi   5
 

#define _wIndexLo   4
 

#define _wLengthHi   7
 

#define _wLengthLo   6
 

#define _wValueHi   3
 

#define _wValueLo   2
 

#define BULK   0x02
 

#define CLASS   (1<<5)
 

#define CLEAR_FEATURE   0x01
 

#define CONFIG_REMOTE_WAKEUP   5
 

#define CONFIG_SELF_POWERED   6
 

#define CONFIGURATION_DESC   0x02
 

#define CTRL   0x00
 

#define DEVICE_DESC   0x01
 

#define DEVICE_QUALIFIER_DESC   0x06
 

#define DEVICE_REMOTE_WAKEUP   0x0001
 

#define DEVICE_TO_HOST   (1<<7)
 

#define ENDPOINT_ADDRESS_MASK   0x0f
 

#define ENDPOINT_DESC   0x05
 

#define ENDPOINT_STALL   0x0000
 

#define EP_DIRECTION_IN   7
 

#define EP_IN   0x80
 

#define EP_OUT   0x00
 

#define GET_CONFIGURATION   0x08
 

#define GET_DESCRIPTOR   0x06
 

#define GET_INTERFACE   0x0a
 

#define GET_STATUS   0x00
 

#define HOST_TO_DEVICE   (0<<7)
 

#define INTERFACE_DESC   0x04
 

#define INTERFACE_POWER_DESC   0x08
 

#define INTR   0x03
 

#define ISOC   0x01
 

#define MAX_DATA_ENDPOINTS   (2*MAX_DATA_ENDPOINTS_PER_DIRECTION)
 

#define MAX_DATA_ENDPOINTS_PER_DIRECTION   15
 

#define MAX_ENDPOINTS   (2*(MAX_DATA_ENDPOINTS_PER_DIRECTION + 1))
 

#define NEXT_USB_DESCRIPTOR pDescr   )     ((PBYTE)(pDescr)+((pDescr)->bLength))
 

#define OTHER_SPEED_CONFIGURATION_DESC   0x07
 

#define RECIPIENT_DEVICE   0
 

#define RECIPIENT_ENDPOINT   2
 

#define RECIPIENT_INTERFACE   1
 

#define RECIPIENT_OTHER   3
 

#define SET_ADDRESS   0x05
 

#define SET_CONFIGURATION   0x09
 

#define SET_DESCRIPTOR   0x07
 

#define SET_FEATURE   0x03
 

#define SET_INTERFACE   0x0b
 

#define STANDARD   (0<<5)
 

#define STRING_DESC   0x03
 

#define SYNCH_FRAME   0x0c
 

#define TEST_MODE   0x0002
 

#define USB_TEST_FORCE_ENABLE   0x05
 

#define USB_TEST_J   0x01
 

#define USB_TEST_K   0x02
 

#define USB_TEST_PACKET   0x04
 

#define USB_TEST_SE0_NAK   0x03
 

#define USBSPEC   0x0110
 

#define VENDOR   (2<<5)
 

#define VENDOR_SPECIFIC   0xff
 


Typedef Documentation

typedef struct _USB_COMMON_DESCRIPTOR * PUSB_COMMON_DESCRIPTOR
 

typedef struct _USB_CONFIGURATION_DESCRIPTOR * PUSB_CONFIGURATION_DESCRIPTOR
 

typedef struct _USB_DEVICE_DESCRIPTOR * PUSB_DEVICE_DESCRIPTOR
 

typedef struct _USB_DEVICE_QUALIFIER_DESCRIPTOR * PUSB_DEVICE_QUALIFIER_DESCRIPTOR
 

typedef struct _USB_ENDPOINT_DESCRIPTOR * PUSB_ENDPOINT_DESCRIPTOR
 

typedef struct _USB_INTERFACE_DESCRIPTOR * PUSB_INTERFACE_DESCRIPTOR
 

typedef struct _USB_SETUP_PACKET * PUSB_SETUP_PACKET
 

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_DEVICE_DESCRIPTOR USB_DEVICE_DESCRIPTOR
 

typedef struct _USB_DEVICE_QUALIFIER_DESCRIPTOR USB_DEVICE_QUALIFIER_DESCRIPTOR
 

typedef struct _USB_ENDPOINT_DESCRIPTOR USB_ENDPOINT_DESCRIPTOR
 

typedef struct _USB_INTERFACE_DESCRIPTOR USB_INTERFACE_DESCRIPTOR
 

typedef struct _USB_SETUP_PACKET USB_SETUP_PACKET
 

typedef struct _USB_STRING_DESCRIPTOR USB_STRING_DESCRIPTOR
 


Generated on Thu Mar 2 16:11:30 2006 for VDK Blacksheep by  doxygen 1.4.1