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 HISTORY/V1.0/usb_descriptors.h.

#include "conf_usb.h"
#include "usb_standard_request.h"
#include "usb_task.h"
#include "conf_isp.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_dfu_functional_descriptor
 USB DFU Functional 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   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 DFU_CAN_DNLOAD   TRUE
#define DFU_CAN_UPLOAD   TRUE
#define DFU_DETACH_TIMEOUT   0
#define DFU_MANIFESTATION_TOLERANT   TRUE
#define DFU_TRANSFER_SIZE   0xFFFF
#define DFU_VERSION   0x0101
#define DFU_WILL_DETACH   TRUE
#define EP_CONTROL_LENGTH   64
#define INTERFACE_CLASS   APPLICATION_CLASS
#define INTERFACE_INDEX   0
#define INTERFACE_NB   0
#define INTERFACE_PROTOCOL   DFU_MODE_PROTOCOL
#define INTERFACE_STATUS   0x00
#define INTERFACE_SUB_CLASS   DFU_SUBCLASS
#define LANG_ID   0x00
#define LANGUAGE_ID   0x0409
#define MAN_INDEX   0x01
#define MAX_POWER   50
#define NB_CONFIGURATION   1
#define NB_ENDPOINT   0
#define NB_INTERFACE   1
#define PROD_INDEX   0x02
#define PRODUCT_ID   ISP_PID
#define RELEASE_NUMBER   0x1000
#define SN_INDEX   0x00
#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   (USB_PFN_LENGTH + 10)
#define USB_PRODUCT_NAME
#define USB_SERIAL_NUMBER
#define USB_SN_LENGTH   5
#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   0

Definition at line 101 of file HISTORY/V1.0/usb_descriptors.h.

#define CONF_ATTRIBUTES   USB_CONFIG_SELFPOWERED

Definition at line 96 of file HISTORY/V1.0/usb_descriptors.h.

#define CONF_INDEX   0

Definition at line 95 of file HISTORY/V1.0/usb_descriptors.h.

#define CONF_NB   1

Definition at line 94 of file HISTORY/V1.0/usb_descriptors.h.

#define DEVICE_CLASS   0

Definition at line 80 of file HISTORY/V1.0/usb_descriptors.h.

#define DEVICE_PROTOCOL   0

Definition at line 82 of file HISTORY/V1.0/usb_descriptors.h.

#define DEVICE_STATUS   SELF_POWERED

Definition at line 117 of file HISTORY/V1.0/usb_descriptors.h.

#define DEVICE_SUB_CLASS   0

Definition at line 81 of file HISTORY/V1.0/usb_descriptors.h.

#define DFU_CAN_DNLOAD   TRUE

Definition at line 112 of file HISTORY/V1.0/usb_descriptors.h.

#define DFU_CAN_UPLOAD   TRUE

Definition at line 111 of file HISTORY/V1.0/usb_descriptors.h.

#define DFU_DETACH_TIMEOUT   0

Definition at line 113 of file HISTORY/V1.0/usb_descriptors.h.

#define DFU_MANIFESTATION_TOLERANT   TRUE

Definition at line 110 of file HISTORY/V1.0/usb_descriptors.h.

#define DFU_TRANSFER_SIZE   0xFFFF

Definition at line 114 of file HISTORY/V1.0/usb_descriptors.h.

#define DFU_VERSION   0x0101

Definition at line 115 of file HISTORY/V1.0/usb_descriptors.h.

#define DFU_WILL_DETACH   TRUE

Definition at line 109 of file HISTORY/V1.0/usb_descriptors.h.

#define EP_CONTROL_LENGTH   64

Definition at line 83 of file HISTORY/V1.0/usb_descriptors.h.

#define INTERFACE_CLASS   APPLICATION_CLASS

Definition at line 103 of file HISTORY/V1.0/usb_descriptors.h.

#define INTERFACE_INDEX   0

Definition at line 106 of file HISTORY/V1.0/usb_descriptors.h.

#define INTERFACE_NB   0

Definition at line 100 of file HISTORY/V1.0/usb_descriptors.h.

#define INTERFACE_PROTOCOL   DFU_MODE_PROTOCOL

Definition at line 105 of file HISTORY/V1.0/usb_descriptors.h.

#define INTERFACE_STATUS   0x00

Definition at line 118 of file HISTORY/V1.0/usb_descriptors.h.

#define INTERFACE_SUB_CLASS   DFU_SUBCLASS

Definition at line 104 of file HISTORY/V1.0/usb_descriptors.h.

#define LANG_ID   0x00

Definition at line 120 of file HISTORY/V1.0/usb_descriptors.h.

#define LANGUAGE_ID   0x0409

Definition at line 225 of file HISTORY/V1.0/usb_descriptors.h.

#define MAN_INDEX   0x01

Definition at line 87 of file HISTORY/V1.0/usb_descriptors.h.

#define MAX_POWER   50

Definition at line 97 of file HISTORY/V1.0/usb_descriptors.h.

#define NB_CONFIGURATION   1

Definition at line 90 of file HISTORY/V1.0/usb_descriptors.h.

#define NB_ENDPOINT   0

Definition at line 102 of file HISTORY/V1.0/usb_descriptors.h.

#define NB_INTERFACE   1

Definition at line 93 of file HISTORY/V1.0/usb_descriptors.h.

#define PROD_INDEX   0x02

Definition at line 88 of file HISTORY/V1.0/usb_descriptors.h.

#define PRODUCT_ID   ISP_PID

Definition at line 85 of file HISTORY/V1.0/usb_descriptors.h.

#define RELEASE_NUMBER   0x1000

Definition at line 86 of file HISTORY/V1.0/usb_descriptors.h.

#define SN_INDEX   0x00

Definition at line 89 of file HISTORY/V1.0/usb_descriptors.h.

 
#define Usb_get_conf_desc_length (  )     (sizeof(usb_conf_desc))

Definition at line 73 of file HISTORY/V1.0/usb_descriptors.h.

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

Definition at line 72 of file HISTORY/V1.0/usb_descriptors.h.

 
#define Usb_get_dev_desc_length (  )     (sizeof(usb_dev_desc))

Definition at line 71 of file HISTORY/V1.0/usb_descriptors.h.

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

Definition at line 70 of file HISTORY/V1.0/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 123 of file HISTORY/V1.0/usb_descriptors.h.

#define USB_MN_LENGTH   5

Definition at line 122 of file HISTORY/V1.0/usb_descriptors.h.

#define USB_PN_LENGTH   (USB_PFN_LENGTH + 10)

Definition at line 198 of file HISTORY/V1.0/usb_descriptors.h.

#define USB_PRODUCT_NAME

Value:

{\
  USB_PART_FAMILY_NAME,\
  Usb_unicode(' '),\
  Usb_unicode('D'),\
  Usb_unicode('F'),\
  Usb_unicode('U'),\
  Usb_unicode(' '),\
  Usb_unicode('1'),\
  Usb_unicode('.'),\
  Usb_unicode('0'),\
  Usb_unicode('.'),\
  Usb_unicode('3')\
}

Definition at line 199 of file HISTORY/V1.0/usb_descriptors.h.

#define USB_SERIAL_NUMBER

Value:

{\
  Usb_unicode('1'),\
  Usb_unicode('.'),\
  Usb_unicode(((((ISP_VERSION >> 4) & 0x0F) < 0xA) ? '0' : 'A' - 0xA) + ((ISP_VERSION >> 4) & 0x0F)),\
  Usb_unicode('.'),\
  Usb_unicode((((ISP_VERSION & 0x0F) < 0xA) ? '0' : 'A' - 0xA) + (ISP_VERSION & 0x0F)) \
}

Definition at line 216 of file HISTORY/V1.0/usb_descriptors.h.

#define USB_SN_LENGTH   5

Definition at line 215 of file HISTORY/V1.0/usb_descriptors.h.

#define USB_SPECIFICATION   0x0200

Definition at line 79 of file HISTORY/V1.0/usb_descriptors.h.

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

Definition at line 69 of file HISTORY/V1.0/usb_descriptors.h.

#define VENDOR_ID   ATMEL_VID

Definition at line 84 of file HISTORY/V1.0/usb_descriptors.h.


Generated on Fri Feb 19 02:32:46 2010 for AVR32 - USB DFU Example: ISP by  doxygen 1.5.5