usb_commun.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Vendor Identifiant according by USB org to ATMEL
#define VID_ATMEL   0x03EB
Product Identifiant according by ATMEL
#define PID_MegaHIDGeneric   0x2013
#define PID_MegaHIDKeyboard   0x2017
#define PID_MegaCDC   0x2018
#define PID_MegaAUDIO_IN   0x2019
#define PID_MegaMS   0x201A
#define PID_MegaAUDIO_IN_OUT   0x201B
#define PID_MegaHIDMouse   0x201C
#define PID_MegaHIDMouse_certif_U4   0x201D
#define PID_MegaCDC_multi   0x201E
#define PID_AT90USB128_64_MS_HIDMS_HID_USBKEY   0x2022
#define PID_AT90USB128_64_MS_HIDMS_HID_STK525   0x2023
#define PID_AT90USB128_64_MS   0x2029
#define PID_Mega_MS_HIDMS   0x202A
#define PID_MegaMS_2   0x2032
#define PID_MegaLibUsb   0x2050
#define PID_ATMega8U2_DFU   0x2FEE
#define PID_ATMega16U2_DFU   0x2FEF
#define PID_ATMega32U2_DFU   0x2FF0
#define PID_ATMega32U6_DFU   0x2FF2
#define PID_ATMega16U4_DFU   0x2FF3
#define PID_ATMega32U4_DFU   0x2FF4
#define PID_AT90USB82_DFU   0x2FF7
#define PID_AT90USB64_DFU   0x2FF9
#define PID_AT90USB162_DFU   0x2FFA
#define PID_AT90USB128_DFU   0x2FFB
Global Class, SubClass & Protocol constants
#define CLASS_APPLICATION   0xFE
 Use to declare a specific interface link at VID-PID.
#define CLASS_VENDOR   0xFF
 Use to declare a specific interface link at VID-PID.
#define NO_CLASS   0x00
#define NO_SUBCLASS   0x00
#define NO_PROTOCOL   0x00
IAD Interface Association Descriptor constants
#define CLASS_IAD   0xEF
#define SUB_CLASS_IAD   0x02
#define PROTOCOL_IAD   0x01
Status constant of device
Bit 0 Self Powered Bit 1 Remote Wakeup Bit 2 Battery Powered

#define USB_DEVICE_STATUS_BUS_POWERED   0x00
#define USB_DEVICE_STATUS_SELF_POWERED   0x01
#define USB_DEVICE_STATUS_REMOTEWAKEUP   0x02
#define USB_DEVICE_STATUS_BATTERYPOWERED   0x04
Attribut constant of status device
#define USB_CONFIG_ATTRIBUTES_RESERVED   0x80
#define USB_CONFIG_ATTRIBUTES_REMOTEWAKEUP   0x20
#define USB_CONFIG_ATTRIBUTES_SELFPOWERED   0x40
#define USB_CONFIG_BUSPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED)
#define USB_CONFIG_REMOTEWAKEUP   (USB_CONFIG_ATTRIBUTES_RESERVED | USB_CONFIG_ATTRIBUTES_REMOTEWAKEUP)
#define USB_CONFIG_SELFPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED | USB_CONFIG_ATTRIBUTES_SELFPOWERED)
Constants used in Endpoint Descriptor
#define USB_ENDPOINT_BULK   0x02
#define USB_ENDPOINT_INTERRUPT   0x03
#define USB_ENDPOINT_OUT   0x00
#define USB_ENDPOINT_IN   0x80
#define USB_ENDPOINT_DIR_MASK   0x80
#define USB_ENDPOINT_NUM_MASK   (~USB_ENDPOINT_DIR_MASK)
Data transfer direction
bit 7, 0 = Host to device 1 = Device to host

#define USB_SETUP_DIR_HOST_TO_DEVICE   (0<<7)
#define USB_SETUP_DIR_DEVICE_TO_HOST   (1<<7)
Type
bit 6 to 5, 0 = Standard 1 = Class 2 = Vendor 3 = Reserved

#define USB_SETUP_TYPE_STANDARD   (0<<5)
#define USB_SETUP_TYPE_CLASS   (1<<5)
#define USB_SETUP_TYPE_VENDOR   (2<<5)
Recipient
bit 4 to 0, 0 = device 1 = Interface 2 = Endpoint 3 = Other 4.

..31 = Reserved

#define USB_SETUP_RECIPIENT_DEVICE   (0)
#define USB_SETUP_RECIPIENT_INTERFACE   (1)
#define USB_SETUP_RECIPIENT_ENDPOINT   (2)
#define USB_SETUP_RECIPIENT_OTHER   (3)
Request type used by standard setup request
#define USB_SETUP_SET_STAND_DEVICE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_DEVICE)
#define USB_SETUP_GET_STAND_DEVICE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_DEVICE)
#define USB_SETUP_SET_STAND_INTERFACE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_INTERFACE)
#define USB_SETUP_GET_STAND_INTERFACE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_INTERFACE)
#define USB_SETUP_SET_STAND_ENDPOINT   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_ENDPOINT)
#define USB_SETUP_GET_STAND_ENDPOINT   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_ENDPOINT)
Request type used by specific setup request from class driver
#define USB_SETUP_SET_CLASS_DEVICE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_DEVICE)
#define USB_SETUP_GET_CLASS_DEVICE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_DEVICE)
#define USB_SETUP_SET_CLASS_INTER   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_INTERFACE)
#define USB_SETUP_GET_CLASS_INTER   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_INTERFACE)
#define USB_SETUP_SET_CLASS_ENDPOINT   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_ENDPOINT)
#define USB_SETUP_GET_CLASS_ENDPOINT   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_ENDPOINT)
#define USB_SETUP_SET_CLASS_OTHER   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_OTHER)
#define USB_SETUP_GET_CLASS_OTHER   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_OTHER)
#define USB_SETUP_SET_VENDOR_DEVICE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_VENDOR |USB_SETUP_RECIPIENT_DEVICE)
#define USB_SETUP_GET_VENDOR_DEVICE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_VENDOR |USB_SETUP_RECIPIENT_DEVICE)
Standard Requests (bRequest)
#define SETUP_GET_STATUS   0x00
#define SETUP_GET_DEVICE   0x01
#define SETUP_CLEAR_FEATURE   0x01
#define SETUP_GET_STRING   0x03
#define SETUP_SET_FEATURE   0x03
#define SETUP_SET_ADDRESS   0x05
#define SETUP_GET_DESCRIPTOR   0x06
#define SETUP_SET_DESCRIPTOR   0x07
#define SETUP_GET_CONFIGURATION   0x08
#define SETUP_SET_CONFIGURATION   0x09
#define SETUP_GET_INTERFACE   0x0A
#define SETUP_SET_INTERFACE   0x0B
#define SETUP_SYNCH_FRAME   0x0C
Descriptor types used in several setup requests
#define DESCRIPTOR_DEVICE   0x01
#define DESCRIPTOR_CONFIGURATION   0x02
#define DESCRIPTOR_STRING   0x03
#define DESCRIPTOR_INTERFACE   0x04
#define DESCRIPTOR_ENDPOINT   0x05
#define DESCRIPTOR_DEVICE_QUALIFIER   0x06
#define DESCRIPTOR_CONF_OTHER_SPEED   0x07
#define DESCRIPTOR_OTG   0x09
#define DESCRIPTOR_IAD   0x0B
Feature types for SETUP_X_FEATURE standard request
#define FEATURE_DEVICE_REMOTE_WAKEUP   0x01
#define FEATURE_DEVICE_TEST   0x02
#define FEATURE_DEVICE_OTG_B_HNP_ENABLE   0x03
#define FEATURE_DEVICE_OTG_A_HNP_SUPPORT   0x04
#define FEATURE_DEVICE_OTG_A_ALT_HNP_SUPPORT   0x05
#define FEATURE_ENDPOINT_HALT   0x00
Feature types for SETUP_X_FEATURE standard test request
#define FEATURE_DEVICE_TEST_J   0x01
#define FEATURE_DEVICE_TEST_K   0x02
#define FEATURE_DEVICE_TEST_SEO_NAK   0x03
#define FEATURE_DEVICE_TEST_PACKET   0x04
#define FEATURE_DEVICE_TEST_FORCE_ENABLE   0x05
OTG descriptor (see OTG_BMATTRIBUTES)
#define DESCRIPTOR_OTG_bLength   0x03
#define HNP_SUPPORT   0x02
#define SRP_SUPPORT   0x01


Detailed Description

This file contains the usb definition constant parameters from USB V2.0 - Compiler: IAR EWAVR and GNU GCC for AVR
Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file usb_commun.h.


Define Documentation

#define VID_ATMEL   0x03EB

Definition at line 47 of file usb_commun.h.

#define PID_MegaHIDGeneric   0x2013

Definition at line 52 of file usb_commun.h.

#define PID_MegaHIDKeyboard   0x2017

Definition at line 53 of file usb_commun.h.

#define PID_MegaCDC   0x2018

Definition at line 54 of file usb_commun.h.

#define PID_MegaAUDIO_IN   0x2019

Definition at line 55 of file usb_commun.h.

#define PID_MegaMS   0x201A

Definition at line 56 of file usb_commun.h.

#define PID_MegaAUDIO_IN_OUT   0x201B

Definition at line 57 of file usb_commun.h.

#define PID_MegaHIDMouse   0x201C

Definition at line 58 of file usb_commun.h.

#define PID_MegaHIDMouse_certif_U4   0x201D

Definition at line 59 of file usb_commun.h.

#define PID_MegaCDC_multi   0x201E

Definition at line 60 of file usb_commun.h.

#define PID_AT90USB128_64_MS_HIDMS_HID_USBKEY   0x2022

Definition at line 61 of file usb_commun.h.

#define PID_AT90USB128_64_MS_HIDMS_HID_STK525   0x2023

Definition at line 62 of file usb_commun.h.

#define PID_AT90USB128_64_MS   0x2029

Definition at line 63 of file usb_commun.h.

#define PID_Mega_MS_HIDMS   0x202A

Definition at line 64 of file usb_commun.h.

#define PID_MegaMS_2   0x2032

Definition at line 65 of file usb_commun.h.

#define PID_MegaLibUsb   0x2050

Definition at line 66 of file usb_commun.h.

#define PID_ATMega8U2_DFU   0x2FEE

Definition at line 67 of file usb_commun.h.

#define PID_ATMega16U2_DFU   0x2FEF

Definition at line 68 of file usb_commun.h.

#define PID_ATMega32U2_DFU   0x2FF0

Definition at line 69 of file usb_commun.h.

#define PID_ATMega32U6_DFU   0x2FF2

Definition at line 70 of file usb_commun.h.

#define PID_ATMega16U4_DFU   0x2FF3

Definition at line 71 of file usb_commun.h.

#define PID_ATMega32U4_DFU   0x2FF4

Definition at line 72 of file usb_commun.h.

#define PID_AT90USB82_DFU   0x2FF7

Definition at line 73 of file usb_commun.h.

#define PID_AT90USB64_DFU   0x2FF9

Definition at line 74 of file usb_commun.h.

#define PID_AT90USB162_DFU   0x2FFA

Definition at line 75 of file usb_commun.h.

#define PID_AT90USB128_DFU   0x2FFB

Definition at line 76 of file usb_commun.h.

#define CLASS_APPLICATION   0xFE

Use to declare a specific interface link at VID-PID.

Definition at line 82 of file usb_commun.h.

#define CLASS_VENDOR   0xFF

Use to declare a specific interface link at VID-PID.

Definition at line 83 of file usb_commun.h.

#define NO_CLASS   0x00

Definition at line 84 of file usb_commun.h.

#define NO_SUBCLASS   0x00

Definition at line 85 of file usb_commun.h.

#define NO_PROTOCOL   0x00

Definition at line 86 of file usb_commun.h.

#define CLASS_IAD   0xEF

Definition at line 91 of file usb_commun.h.

#define SUB_CLASS_IAD   0x02

Definition at line 92 of file usb_commun.h.

#define PROTOCOL_IAD   0x01

Definition at line 93 of file usb_commun.h.

#define USB_DEVICE_STATUS_BUS_POWERED   0x00

Definition at line 102 of file usb_commun.h.

#define USB_DEVICE_STATUS_SELF_POWERED   0x01

Definition at line 103 of file usb_commun.h.

#define USB_DEVICE_STATUS_REMOTEWAKEUP   0x02

Definition at line 104 of file usb_commun.h.

Referenced by usb_clear_feature(), and usb_set_feature().

#define USB_DEVICE_STATUS_BATTERYPOWERED   0x04

Definition at line 105 of file usb_commun.h.

#define USB_CONFIG_ATTRIBUTES_RESERVED   0x80

Definition at line 111 of file usb_commun.h.

#define USB_CONFIG_ATTRIBUTES_REMOTEWAKEUP   0x20

Definition at line 112 of file usb_commun.h.

#define USB_CONFIG_ATTRIBUTES_SELFPOWERED   0x40

Definition at line 113 of file usb_commun.h.

#define USB_CONFIG_BUSPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED)

Definition at line 114 of file usb_commun.h.

#define USB_CONFIG_REMOTEWAKEUP   (USB_CONFIG_ATTRIBUTES_RESERVED | USB_CONFIG_ATTRIBUTES_REMOTEWAKEUP)

Definition at line 115 of file usb_commun.h.

#define USB_CONFIG_SELFPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED | USB_CONFIG_ATTRIBUTES_SELFPOWERED)

Definition at line 116 of file usb_commun.h.

#define USB_ENDPOINT_BULK   0x02

Definition at line 122 of file usb_commun.h.

#define USB_ENDPOINT_INTERRUPT   0x03

Definition at line 123 of file usb_commun.h.

#define USB_ENDPOINT_OUT   0x00

Definition at line 124 of file usb_commun.h.

#define USB_ENDPOINT_IN   0x80

Definition at line 125 of file usb_commun.h.

#define USB_ENDPOINT_DIR_MASK   0x80

Definition at line 126 of file usb_commun.h.

#define USB_ENDPOINT_NUM_MASK   (~USB_ENDPOINT_DIR_MASK)

Definition at line 127 of file usb_commun.h.

#define USB_SETUP_DIR_HOST_TO_DEVICE   (0<<7)

Definition at line 142 of file usb_commun.h.

#define USB_SETUP_DIR_DEVICE_TO_HOST   (1<<7)

Definition at line 143 of file usb_commun.h.

Referenced by host_send_control().

#define USB_SETUP_TYPE_STANDARD   (0<<5)

Definition at line 153 of file usb_commun.h.

#define USB_SETUP_TYPE_CLASS   (1<<5)

Definition at line 154 of file usb_commun.h.

#define USB_SETUP_TYPE_VENDOR   (2<<5)

Definition at line 155 of file usb_commun.h.

#define USB_SETUP_RECIPIENT_DEVICE   (0)

Definition at line 166 of file usb_commun.h.

#define USB_SETUP_RECIPIENT_INTERFACE   (1)

Definition at line 167 of file usb_commun.h.

#define USB_SETUP_RECIPIENT_ENDPOINT   (2)

Definition at line 168 of file usb_commun.h.

#define USB_SETUP_RECIPIENT_OTHER   (3)

Definition at line 169 of file usb_commun.h.

#define USB_SETUP_SET_STAND_DEVICE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_DEVICE)

Definition at line 174 of file usb_commun.h.

Referenced by usb_clear_feature(), usb_process_request(), and usb_set_feature().

#define USB_SETUP_GET_STAND_DEVICE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_DEVICE)

Definition at line 175 of file usb_commun.h.

Referenced by usb_get_status(), and usb_process_request().

#define USB_SETUP_SET_STAND_INTERFACE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_INTERFACE)

Definition at line 176 of file usb_commun.h.

Referenced by usb_clear_feature(), usb_process_request(), and usb_set_feature().

#define USB_SETUP_GET_STAND_INTERFACE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_INTERFACE)

Definition at line 177 of file usb_commun.h.

Referenced by usb_get_status(), usb_process_request(), and usb_user_read_request().

#define USB_SETUP_SET_STAND_ENDPOINT   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_ENDPOINT)

Definition at line 178 of file usb_commun.h.

Referenced by usb_clear_feature(), and usb_set_feature().

#define USB_SETUP_GET_STAND_ENDPOINT   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_STANDARD |USB_SETUP_RECIPIENT_ENDPOINT)

Definition at line 179 of file usb_commun.h.

Referenced by usb_get_status().

#define USB_SETUP_SET_CLASS_DEVICE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_DEVICE)

Definition at line 184 of file usb_commun.h.

#define USB_SETUP_GET_CLASS_DEVICE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_DEVICE)

Definition at line 185 of file usb_commun.h.

#define USB_SETUP_SET_CLASS_INTER   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_INTERFACE)

Definition at line 186 of file usb_commun.h.

Referenced by usb_user_read_request().

#define USB_SETUP_GET_CLASS_INTER   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_INTERFACE)

Definition at line 187 of file usb_commun.h.

Referenced by usb_user_read_request().

#define USB_SETUP_SET_CLASS_ENDPOINT   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_ENDPOINT)

Definition at line 188 of file usb_commun.h.

#define USB_SETUP_GET_CLASS_ENDPOINT   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_ENDPOINT)

Definition at line 189 of file usb_commun.h.

#define USB_SETUP_SET_CLASS_OTHER   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_OTHER)

Definition at line 190 of file usb_commun.h.

#define USB_SETUP_GET_CLASS_OTHER   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_CLASS |USB_SETUP_RECIPIENT_OTHER)

Definition at line 191 of file usb_commun.h.

#define USB_SETUP_SET_VENDOR_DEVICE   (USB_SETUP_DIR_HOST_TO_DEVICE |USB_SETUP_TYPE_VENDOR |USB_SETUP_RECIPIENT_DEVICE)

Definition at line 192 of file usb_commun.h.

#define USB_SETUP_GET_VENDOR_DEVICE   (USB_SETUP_DIR_DEVICE_TO_HOST |USB_SETUP_TYPE_VENDOR |USB_SETUP_RECIPIENT_DEVICE)

Definition at line 193 of file usb_commun.h.

#define SETUP_GET_STATUS   0x00

Definition at line 199 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_GET_DEVICE   0x01

Definition at line 200 of file usb_commun.h.

#define SETUP_CLEAR_FEATURE   0x01

Definition at line 201 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_GET_STRING   0x03

Definition at line 202 of file usb_commun.h.

#define SETUP_SET_FEATURE   0x03

Definition at line 203 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_SET_ADDRESS   0x05

Definition at line 204 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_GET_DESCRIPTOR   0x06

Definition at line 205 of file usb_commun.h.

Referenced by usb_process_request(), and usb_user_read_request().

#define SETUP_SET_DESCRIPTOR   0x07

Definition at line 206 of file usb_commun.h.

#define SETUP_GET_CONFIGURATION   0x08

Definition at line 207 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_SET_CONFIGURATION   0x09

Definition at line 208 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_GET_INTERFACE   0x0A

Definition at line 209 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_SET_INTERFACE   0x0B

Definition at line 210 of file usb_commun.h.

Referenced by usb_process_request().

#define SETUP_SYNCH_FRAME   0x0C

Definition at line 211 of file usb_commun.h.

#define DESCRIPTOR_DEVICE   0x01

Definition at line 216 of file usb_commun.h.

Referenced by usb_get_descriptor().

#define DESCRIPTOR_CONFIGURATION   0x02

Definition at line 217 of file usb_commun.h.

Referenced by host_check_class(), and usb_get_descriptor().

#define DESCRIPTOR_STRING   0x03

Definition at line 218 of file usb_commun.h.

Referenced by usb_user_get_descriptor().

#define DESCRIPTOR_INTERFACE   0x04

Definition at line 219 of file usb_commun.h.

Referenced by get_interface_descriptor_offset(), and host_check_class().

#define DESCRIPTOR_ENDPOINT   0x05

Definition at line 220 of file usb_commun.h.

Referenced by host_auto_configure_endpoint().

#define DESCRIPTOR_DEVICE_QUALIFIER   0x06

Definition at line 221 of file usb_commun.h.

#define DESCRIPTOR_CONF_OTHER_SPEED   0x07

Definition at line 222 of file usb_commun.h.

#define DESCRIPTOR_OTG   0x09

Definition at line 223 of file usb_commun.h.

#define DESCRIPTOR_IAD   0x0B

Definition at line 224 of file usb_commun.h.

#define FEATURE_DEVICE_REMOTE_WAKEUP   0x01

Definition at line 229 of file usb_commun.h.

Referenced by usb_clear_feature(), and usb_set_feature().

#define FEATURE_DEVICE_TEST   0x02

Definition at line 230 of file usb_commun.h.

#define FEATURE_DEVICE_OTG_B_HNP_ENABLE   0x03

Definition at line 231 of file usb_commun.h.

#define FEATURE_DEVICE_OTG_A_HNP_SUPPORT   0x04

Definition at line 232 of file usb_commun.h.

#define FEATURE_DEVICE_OTG_A_ALT_HNP_SUPPORT   0x05

Definition at line 233 of file usb_commun.h.

#define FEATURE_ENDPOINT_HALT   0x00

Definition at line 234 of file usb_commun.h.

Referenced by usb_clear_feature(), and usb_set_feature().

#define FEATURE_DEVICE_TEST_J   0x01

Definition at line 239 of file usb_commun.h.

#define FEATURE_DEVICE_TEST_K   0x02

Definition at line 240 of file usb_commun.h.

#define FEATURE_DEVICE_TEST_SEO_NAK   0x03

Definition at line 241 of file usb_commun.h.

#define FEATURE_DEVICE_TEST_PACKET   0x04

Definition at line 242 of file usb_commun.h.

#define FEATURE_DEVICE_TEST_FORCE_ENABLE   0x05

Definition at line 243 of file usb_commun.h.

#define DESCRIPTOR_OTG_bLength   0x03

Definition at line 249 of file usb_commun.h.

#define HNP_SUPPORT   0x02

Definition at line 250 of file usb_commun.h.

Referenced by usb_set_feature().

#define SRP_SUPPORT   0x01

Definition at line 251 of file usb_commun.h.


Generated on Mon Sep 14 13:24:12 2009 for ATMEL by  doxygen 1.5.3