usb_descriptors.h File Reference


Detailed Description

USB identifiers.

This file contains the USB parameters that uniquely identify the USB application through descriptor tables.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file usb_descriptors.h.

#include "conf_usb.h"
#include "usb_standard_request.h"
#include "usb_task.h"

Go to the source code of this file.

Data Structures

struct  S_usb_configuration_descriptor
 USB Configuration Descriptor. More...
struct  S_usb_device_descriptor
 USB Device Descriptor. More...
struct  S_usb_device_qualifier_descriptor
 USB Device Qualifier Descriptor. More...
struct  S_usb_endpoint_descriptor
 USB Endpoint Descriptor. More...
struct  S_usb_interface_descriptor
 USB Interface Descriptor. More...
struct  S_usb_language_id
 USB Language Descriptor. More...
struct  S_usb_manufacturer_string_descriptor
 struct usb_st_manufacturer More...
struct  S_usb_product_string_descriptor
 struct usb_st_product More...
struct  S_usb_serial_number
 struct usb_st_serial_number More...
struct  S_usb_user_configuration_descriptor
struct  S_UsbRequest
 USB Request. More...

Defines

#define ALTERNATE_FC   0
#define ALTERNATE_MS   0
#define CONF_ATTRIBUTES   USB_CONFIG_SELFPOWERED
#define CONF_INDEX   0
#define CONF_NB   1
#define DEVICE_CLASS   0
#define DEVICE_PROTOCOL   0
#define DEVICE_STATUS   SELF_POWERED
#define DEVICE_SUB_CLASS   0
#define ENDPOINT_NB_1   (EP_FC_IN | MSK_EP_DIR)
#define ENDPOINT_NB_2   (EP_FC_OUT)
#define ENDPOINT_NB_3   (EP_MS_IN | 0x80)
#define ENDPOINT_NB_4   EP_MS_OUT
#define EP_ATTRIBUTES_1   TYPE_BULK
#define EP_ATTRIBUTES_2   TYPE_BULK
#define EP_ATTRIBUTES_3   TYPE_BULK
#define EP_ATTRIBUTES_4   TYPE_BULK
#define EP_CONTROL_LENGTH   64
#define EP_IN_LENGTH_1   8
#define EP_INTERVAL_1   5
#define EP_INTERVAL_2   5
#define EP_INTERVAL_3   0
#define EP_INTERVAL_4   0
#define EP_OUT_LENGTH_2   64
#define EP_OUT_LENGTH_3   64
#define EP_OUT_LENGTH_4   64
#define EP_SIZE_1   EP_IN_LENGTH_1
#define EP_SIZE_2   EP_OUT_LENGTH_2
#define EP_SIZE_3   EP_OUT_LENGTH_3
#define EP_SIZE_4   EP_OUT_LENGTH_4
#define EVK1101_CTRL_PANEL_PID   EVK1101_CTRL_PANEL_DEMO_HID_PID
#define INTERFACE_CLASS_FC   NO_CLASS
#define INTERFACE_CLASS_MS   0x08
#define INTERFACE_INDEX_FC   0
#define INTERFACE_INDEX_MS   0
#define INTERFACE_NB_FC   0
#define INTERFACE_NB_MS   1
#define INTERFACE_PROTOCOL_FC   NO_PROTOCOL
#define INTERFACE_PROTOCOL_MS   0x50
#define INTERFACE_STATUS   0x00
#define INTERFACE_SUB_CLASS_FC   NO_SUBCLASS
#define INTERFACE_SUB_CLASS_MS   0x06
#define LANG_ID   0x00
#define LANGUAGE_ID   0x0409
#define LENGTH_OF_REPORT_IN   0x08
#define LENGTH_OF_REPORT_OUT   0x08
#define MAN_INDEX   0x01
#define MAX_POWER   50
#define NB_CONFIGURATION   1
#define NB_ENDPOINT_FC   2
#define NB_ENDPOINT_MS   2
#define NB_INTERFACE   1
#define PROD_INDEX   0x02
#define PRODUCT_ID   EVK1101_CTRL_PANEL_PID
#define RELEASE_NUMBER   0x1000
#define SN_INDEX   0x03
#define Usb_get_conf_desc_length()   (sizeof(usb_conf_desc))
#define Usb_get_conf_desc_pointer()   (&(usb_conf_desc.cfg.bLength))
#define Usb_get_dev_desc_length()   (sizeof(usb_dev_desc))
#define Usb_get_dev_desc_pointer()   (&(usb_dev_desc.bLength))
#define USB_MANUFACTURER_NAME
#define USB_MN_LENGTH   5
#define USB_PN_LENGTH   23
#define USB_PRODUCT_NAME
#define USB_SERIAL_NUMBER
#define USB_SN_LENGTH   13
#define USB_SPECIFICATION   0x0200
#define Usb_unicode(c)   (Usb_format_mcu_to_usb_data(16, (U16)(c)))
#define VENDOR_ID   ATMEL_VID


Define Documentation

#define ALTERNATE_FC   0

Definition at line 112 of file usb_descriptors.h.

#define ALTERNATE_MS   0

Definition at line 137 of file usb_descriptors.h.

#define CONF_ATTRIBUTES   USB_CONFIG_SELFPOWERED

Definition at line 107 of file usb_descriptors.h.

#define CONF_INDEX   0

Definition at line 106 of file usb_descriptors.h.

#define CONF_NB   1

Definition at line 105 of file usb_descriptors.h.

#define DEVICE_CLASS   0

Definition at line 84 of file usb_descriptors.h.

#define DEVICE_PROTOCOL   0

Definition at line 86 of file usb_descriptors.h.

#define DEVICE_STATUS   SELF_POWERED

Definition at line 164 of file usb_descriptors.h.

#define DEVICE_SUB_CLASS   0

Definition at line 85 of file usb_descriptors.h.

#define ENDPOINT_NB_1   (EP_FC_IN | MSK_EP_DIR)

Definition at line 120 of file usb_descriptors.h.

#define ENDPOINT_NB_2   (EP_FC_OUT)

Definition at line 127 of file usb_descriptors.h.

#define ENDPOINT_NB_3   (EP_MS_IN | 0x80)

Definition at line 145 of file usb_descriptors.h.

#define ENDPOINT_NB_4   EP_MS_OUT

Definition at line 153 of file usb_descriptors.h.

#define EP_ATTRIBUTES_1   TYPE_BULK

Definition at line 121 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_ATTRIBUTES_2   TYPE_BULK

Definition at line 128 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_ATTRIBUTES_3   TYPE_BULK

Definition at line 146 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_ATTRIBUTES_4   TYPE_BULK

Definition at line 154 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_CONTROL_LENGTH   64

Definition at line 87 of file usb_descriptors.h.

#define EP_IN_LENGTH_1   8

Definition at line 122 of file usb_descriptors.h.

#define EP_INTERVAL_1   5

Definition at line 124 of file usb_descriptors.h.

#define EP_INTERVAL_2   5

Definition at line 131 of file usb_descriptors.h.

#define EP_INTERVAL_3   0

Definition at line 149 of file usb_descriptors.h.

#define EP_INTERVAL_4   0

Definition at line 157 of file usb_descriptors.h.

#define EP_OUT_LENGTH_2   64

Definition at line 129 of file usb_descriptors.h.

#define EP_OUT_LENGTH_3   64

Definition at line 147 of file usb_descriptors.h.

#define EP_OUT_LENGTH_4   64

Definition at line 155 of file usb_descriptors.h.

#define EP_SIZE_1   EP_IN_LENGTH_1

Definition at line 123 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_SIZE_2   EP_OUT_LENGTH_2

Definition at line 130 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_SIZE_3   EP_OUT_LENGTH_3

Definition at line 148 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_SIZE_4   EP_OUT_LENGTH_4

Definition at line 156 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EVK1101_CTRL_PANEL_PID   EVK1101_CTRL_PANEL_DEMO_HID_PID

Definition at line 62 of file usb_descriptors.h.

#define INTERFACE_CLASS_FC   NO_CLASS

Definition at line 114 of file usb_descriptors.h.

#define INTERFACE_CLASS_MS   0x08

Definition at line 139 of file usb_descriptors.h.

#define INTERFACE_INDEX_FC   0

Definition at line 117 of file usb_descriptors.h.

#define INTERFACE_INDEX_MS   0

Definition at line 142 of file usb_descriptors.h.

#define INTERFACE_NB_FC   0

Definition at line 111 of file usb_descriptors.h.

#define INTERFACE_NB_MS   1

Definition at line 136 of file usb_descriptors.h.

#define INTERFACE_PROTOCOL_FC   NO_PROTOCOL

Definition at line 116 of file usb_descriptors.h.

#define INTERFACE_PROTOCOL_MS   0x50

Definition at line 141 of file usb_descriptors.h.

#define INTERFACE_STATUS   0x00

Definition at line 165 of file usb_descriptors.h.

#define INTERFACE_SUB_CLASS_FC   NO_SUBCLASS

Definition at line 115 of file usb_descriptors.h.

#define INTERFACE_SUB_CLASS_MS   0x06

Definition at line 140 of file usb_descriptors.h.

#define LANG_ID   0x00

Definition at line 167 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define LANGUAGE_ID   0x0409

Definition at line 225 of file usb_descriptors.h.

#define LENGTH_OF_REPORT_IN   0x08

Definition at line 161 of file usb_descriptors.h.

#define LENGTH_OF_REPORT_OUT   0x08

Definition at line 162 of file usb_descriptors.h.

#define MAN_INDEX   0x01

Definition at line 91 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define MAX_POWER   50

Definition at line 108 of file usb_descriptors.h.

#define NB_CONFIGURATION   1

Definition at line 94 of file usb_descriptors.h.

#define NB_ENDPOINT_FC   2

Definition at line 113 of file usb_descriptors.h.

#define NB_ENDPOINT_MS   2

Definition at line 138 of file usb_descriptors.h.

#define NB_INTERFACE   1

Definition at line 101 of file usb_descriptors.h.

#define PROD_INDEX   0x02

Definition at line 92 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define PRODUCT_ID   EVK1101_CTRL_PANEL_PID

Definition at line 89 of file usb_descriptors.h.

#define RELEASE_NUMBER   0x1000

Definition at line 90 of file usb_descriptors.h.

#define SN_INDEX   0x03

Definition at line 93 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

 
#define Usb_get_conf_desc_length (  )     (sizeof(usb_conf_desc))

Definition at line 77 of file usb_descriptors.h.

 
#define Usb_get_conf_desc_pointer (  )     (&(usb_conf_desc.cfg.bLength))

Definition at line 76 of file usb_descriptors.h.

 
#define Usb_get_dev_desc_length (  )     (sizeof(usb_dev_desc))

Definition at line 75 of file usb_descriptors.h.

 
#define Usb_get_dev_desc_pointer (  )     (&(usb_dev_desc.bLength))

Definition at line 74 of file usb_descriptors.h.

#define USB_MANUFACTURER_NAME

Value:

{\
  Usb_unicode('A'),\
  Usb_unicode('T'),\
  Usb_unicode('M'),\
  Usb_unicode('E'),\
  Usb_unicode('L') \
}

Definition at line 170 of file usb_descriptors.h.

#define USB_MN_LENGTH   5

Definition at line 169 of file usb_descriptors.h.

#define USB_PN_LENGTH   23

Definition at line 179 of file usb_descriptors.h.

#define USB_PRODUCT_NAME

Value:

{\
  Usb_unicode('A'),\
  Usb_unicode('V'),\
  Usb_unicode('R'),\
  Usb_unicode('3'),\
  Usb_unicode('2'),\
  Usb_unicode(' '),\
  Usb_unicode('U'),\
  Usb_unicode('C'),\
  Usb_unicode('3'),\
  Usb_unicode('B'),\
  Usb_unicode(' '),\
  Usb_unicode('E'),\
  Usb_unicode('V'),\
  Usb_unicode('K'),\
  Usb_unicode('1'),\
  Usb_unicode('1'),\
  Usb_unicode('0'),\
  Usb_unicode('1'),\
  Usb_unicode(' '),\
  Usb_unicode('D'),\
  Usb_unicode('e'),\
  Usb_unicode('m'),\
  Usb_unicode('o') \
}

Definition at line 180 of file usb_descriptors.h.

#define USB_SERIAL_NUMBER

Value:

{\
  Usb_unicode('1'),\
  Usb_unicode('.'),\
  Usb_unicode('0'),\
  Usb_unicode('.'),\
  Usb_unicode('0'),\
  Usb_unicode('.'),\
  Usb_unicode('0'),\
  Usb_unicode('.'),\
  Usb_unicode('0'),\
  Usb_unicode('.'),\
  Usb_unicode('0'),\
  Usb_unicode('.'),\
  Usb_unicode('A') \
}

Definition at line 208 of file usb_descriptors.h.

#define USB_SN_LENGTH   13

Definition at line 207 of file usb_descriptors.h.

#define USB_SPECIFICATION   0x0200

Definition at line 83 of file usb_descriptors.h.

#define Usb_unicode (  )     (Usb_format_mcu_to_usb_data(16, (U16)(c)))

Definition at line 73 of file usb_descriptors.h.

#define VENDOR_ID   ATMEL_VID

Definition at line 88 of file usb_descriptors.h.


Generated on Fri Feb 19 02:22:52 2010 for AVR32 - Control Panel demonstration. by  doxygen 1.5.5