usb_descriptors.h File Reference

,vUSB Identifers. More...

#include "config.h"
#include "modules/usb/device_chap9/usb_standard_request.h"
#include "conf_usb.h"

Include dependency graph for usb_descriptors.h:

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

Go to the source code of this file.

Data Structures

struct  S_UsbRequest
 Usb Request. More...
struct  S_usb_device_descriptor
 Usb Device Descriptor. More...
struct  S_usb_configuration_descriptor
 Usb Configuration Descriptor. More...
struct  S_usb_otg_descriptor
 OTG Descriptor. More...
struct  S_usb_interface_descriptor
 Usb Interface Descriptor. More...
struct  S_usb_endpoint_descriptor
 Usb Endpoint Descriptor. More...
struct  S_usb_device_qualifier_descriptor
 Usb Device Qualifier Descriptor. More...
struct  S_usb_language_id
 Usb Language Descriptor. More...
struct  S_usb_manufacturer_string_descriptor
struct  S_usb_product_string_descriptor
struct  S_usb_serial_number
struct  S_usb_hid_descriptor
struct  S_usb_user_configuration_descriptor

Defines

#define Usb_get_dev_desc_pointer()   (&(usb_dev_desc.bLength))
#define Usb_get_dev_desc_length()   (sizeof (usb_dev_desc))
#define Usb_get_conf_desc_pointer()   (&(usb_conf_desc.cfg_mouse.bLength))
#define Usb_get_conf_desc_length()   (sizeof (usb_conf_desc))
#define USB_SPECIFICATION   0x0200
#define DEVICE_CLASS   0
#define DEVICE_SUB_CLASS   0
#define DEVICE_PROTOCOL   0
#define EP_CONTROL_LENGTH   8
#define VENDOR_ID   0x03EB
#define PRODUCT_ID   0x2031
#define RELEASE_NUMBER   0x1000
#define MAN_INDEX   0x01
#define PROD_INDEX   0x02
#define SN_INDEX   0x03
#define NB_CONFIGURATION   1
#define NB_INTERFACE   1
#define CONF_NB   1
#define CONF_INDEX   0
#define CONF_ATTRIBUTES   (USB_CONFIG_SELFPOWERED)
#define MAX_POWER   50
#define OTG_BMATTRIBUTES   (HNP_SUPPORT | SRP_SUPPORT)
#define INTERFACE_NB_SPIDER   0
#define ALTERNATE_SPIDER   0
#define NB_ENDPOINT_SPIDER   1
#define INTERFACE_CLASS_SPIDER   HID_CLASS
#define INTERFACE_SUB_CLASS_SPIDER   NO_SUBCLASS
#define INTERFACE_PROTOCOL_SPIDER   MOUSE_PROTOCOL
#define INTERFACE_INDEX_SPIDER   0
#define SELF_POWERED   1
#define DEVICE_STATUS   SELF_POWERED
#define INTERFACE_STATUS   0x00
#define ENDPOINT_NB_1   (EP_SPIDER_IN | 0x80)
#define EP_ATTRIBUTES_1   0x03
#define EP_IN_LENGTH_1   8
#define EP_SIZE_1   EP_IN_LENGTH_1
#define EP_INTERVAL_1   50
#define HID   0x21
#define REPORT   0x22
#define SET_REPORT   0x02
#define HID_DESCRIPTOR   0x21
#define HID_BDC   0x1001
#define HID_COUNTRY_CODE   0x00
#define HID_CLASS_DESC_NB   0x01
#define HID_DESCRIPTOR_TYPE   0x22
#define LANG_ID   0x00
#define USB_MN_LENGTH   5
#define USB_MANUFACTURER_NAME
#define USB_PN_LENGTH   21
#define USB_PRODUCT_NAME
#define USB_SN_LENGTH   0x0D
#define USB_SERIAL_NUMBER
#define LANGUAGE_ID   0x0409


Detailed Description

,vUSB Identifers.

Copyright (c) 2004 Atmel.

Use of this program is subject to Atmel's End User License Agreement. Please read file license.txt for copyright notice.

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

Version:
1.1 at90usb128-otg-dual_role-toggle-1_0_0
Id
usb_descriptors.h,v 1.1 2007/02/16 13:13:11 arobert Exp
Todo:
Bug:

Definition in file usb_descriptors.h.


Define Documentation

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

Definition at line 29 of file usb_descriptors.h.

Referenced by usb_get_descriptor().

 
#define Usb_get_dev_desc_length (  )     (sizeof (usb_dev_desc))

Definition at line 30 of file usb_descriptors.h.

Referenced by usb_get_descriptor().

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

Definition at line 31 of file usb_descriptors.h.

Referenced by usb_get_descriptor().

 
#define Usb_get_conf_desc_length (  )     (sizeof (usb_conf_desc))

Definition at line 32 of file usb_descriptors.h.

Referenced by usb_get_descriptor().

#define USB_SPECIFICATION   0x0200

Definition at line 37 of file usb_descriptors.h.

#define DEVICE_CLASS   0

Definition at line 38 of file usb_descriptors.h.

#define DEVICE_SUB_CLASS   0

Definition at line 39 of file usb_descriptors.h.

#define DEVICE_PROTOCOL   0

Definition at line 40 of file usb_descriptors.h.

#define EP_CONTROL_LENGTH   8

Definition at line 41 of file usb_descriptors.h.

Referenced by hid_get_hid_descriptor(), hid_get_report(), and usb_get_descriptor().

#define VENDOR_ID   0x03EB

Definition at line 42 of file usb_descriptors.h.

#define PRODUCT_ID   0x2031

Definition at line 43 of file usb_descriptors.h.

#define RELEASE_NUMBER   0x1000

Definition at line 44 of file usb_descriptors.h.

#define MAN_INDEX   0x01

Definition at line 45 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define PROD_INDEX   0x02

Definition at line 46 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define SN_INDEX   0x03

Definition at line 47 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define NB_CONFIGURATION   1

Definition at line 48 of file usb_descriptors.h.

Referenced by usb_set_configuration().

#define NB_INTERFACE   1

Definition at line 51 of file usb_descriptors.h.

#define CONF_NB   1

Definition at line 52 of file usb_descriptors.h.

#define CONF_INDEX   0

Definition at line 53 of file usb_descriptors.h.

#define CONF_ATTRIBUTES   (USB_CONFIG_SELFPOWERED)

Definition at line 54 of file usb_descriptors.h.

Referenced by usb_set_feature().

#define MAX_POWER   50

Definition at line 55 of file usb_descriptors.h.

#define OTG_BMATTRIBUTES   (HNP_SUPPORT | SRP_SUPPORT)

Definition at line 58 of file usb_descriptors.h.

Referenced by usb_set_feature().

#define INTERFACE_NB_SPIDER   0

Definition at line 61 of file usb_descriptors.h.

#define ALTERNATE_SPIDER   0

Definition at line 62 of file usb_descriptors.h.

#define NB_ENDPOINT_SPIDER   1

Definition at line 63 of file usb_descriptors.h.

#define INTERFACE_CLASS_SPIDER   HID_CLASS

Definition at line 64 of file usb_descriptors.h.

#define INTERFACE_SUB_CLASS_SPIDER   NO_SUBCLASS

Definition at line 65 of file usb_descriptors.h.

#define INTERFACE_PROTOCOL_SPIDER   MOUSE_PROTOCOL

Definition at line 66 of file usb_descriptors.h.

#define INTERFACE_INDEX_SPIDER   0

Definition at line 67 of file usb_descriptors.h.

#define SELF_POWERED   1

Definition at line 69 of file usb_descriptors.h.

#define DEVICE_STATUS   SELF_POWERED

Definition at line 70 of file usb_descriptors.h.

Referenced by usb_get_status().

#define INTERFACE_STATUS   0x00

Definition at line 71 of file usb_descriptors.h.

Referenced by usb_get_status().

#define ENDPOINT_NB_1   (EP_SPIDER_IN | 0x80)

Definition at line 74 of file usb_descriptors.h.

#define EP_ATTRIBUTES_1   0x03

Definition at line 75 of file usb_descriptors.h.

#define EP_IN_LENGTH_1   8

Definition at line 76 of file usb_descriptors.h.

#define EP_SIZE_1   EP_IN_LENGTH_1

Definition at line 77 of file usb_descriptors.h.

#define EP_INTERVAL_1   50

Definition at line 78 of file usb_descriptors.h.

#define HID   0x21

Definition at line 82 of file usb_descriptors.h.

Referenced by usb_user_read_request().

#define REPORT   0x22

Definition at line 83 of file usb_descriptors.h.

Referenced by usb_user_read_request().

#define SET_REPORT   0x02

Definition at line 84 of file usb_descriptors.h.

Referenced by usb_user_read_request().

#define HID_DESCRIPTOR   0x21

Definition at line 86 of file usb_descriptors.h.

#define HID_BDC   0x1001

Definition at line 87 of file usb_descriptors.h.

#define HID_COUNTRY_CODE   0x00

Definition at line 88 of file usb_descriptors.h.

#define HID_CLASS_DESC_NB   0x01

Definition at line 89 of file usb_descriptors.h.

#define HID_DESCRIPTOR_TYPE   0x22

Definition at line 90 of file usb_descriptors.h.

#define LANG_ID   0x00

Definition at line 92 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define USB_MN_LENGTH   5

Definition at line 95 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 96 of file usb_descriptors.h.

#define USB_PN_LENGTH   21

Definition at line 104 of file usb_descriptors.h.

#define USB_PRODUCT_NAME

Value:

{ Usb_unicode('A') \
 ,Usb_unicode('V') \
 ,Usb_unicode('R') \
 ,Usb_unicode('U') \
 ,Usb_unicode('S') \
 ,Usb_unicode('B') \
 ,Usb_unicode(' ') \
 ,Usb_unicode('O') \
 ,Usb_unicode('T') \
 ,Usb_unicode('G') \
 ,Usb_unicode(' ') \
 ,Usb_unicode('M') \
 ,Usb_unicode('O') \
 ,Usb_unicode('U') \
 ,Usb_unicode('S') \
 ,Usb_unicode('E') \
 ,Usb_unicode(' ') \
 ,Usb_unicode('D') \
 ,Usb_unicode('E') \
 ,Usb_unicode('M') \
 ,Usb_unicode('O') \
}

Definition at line 105 of file usb_descriptors.h.

#define USB_SN_LENGTH   0x0D

Definition at line 129 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 131 of file usb_descriptors.h.

#define LANGUAGE_ID   0x0409

Definition at line 147 of file usb_descriptors.h.


Generated on Mon Feb 19 09:31:59 2007 for Atmel by  doxygen 1.5.1-p1