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"
#include "usb_audio.h"

Go to the source code of this file.

Data Structures

struct  S_usb_ac_interface_descriptor
 A U D I O Specific Class-Specific AC Interface Descriptor. More...
struct  S_usb_as_interface_descriptor
 Class-Specific AS Interface Descriptor. More...
struct  S_usb_configuration_descriptor
 USB Configuration Descriptor. More...
struct  S_usb_device_descriptor
 USB Device Descriptor. More...
struct  S_usb_endpoint_audio_descriptor
 Usb Audio Endpoint Descriptor. More...
struct  S_usb_endpoint_audio_specific
 Endpoint AUDIO Specific descriptor. More...
struct  S_usb_endpoint_descriptor
 USB Endpoint Descriptor. More...
struct  S_usb_feature_unit_descriptor_micro
 Class-Specific Feature Unit Descriptor. More...
struct  S_usb_feature_unit_descriptor_speaker
 Class-Specific Feature Unit Descriptor. More...
struct  S_usb_format_type_microphone
struct  S_usb_format_type_speaker
 Audio Format Type descriptor. More...
struct  S_usb_hid_descriptor
struct  S_usb_in_ter_descriptor
 Class-Specific Input Terminal 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_out_ter_descriptor
 Class-Specific Output Terminal Descriptor. 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 AC_ALTERNATE   0
#define AC_INTERFACE_CLASS   AUDIO_CLASS
#define AC_INTERFACE_INDEX   0
#define AC_INTERFACE_NB   0
#define AC_INTERFACE_PROTOCOL   NO_PROTOCOL
#define AC_INTERFACE_SUB_CLASS   AUDIOCONTROL_SUBCLASS
#define AC_NB_ENDPOINT   0
#define ALT0_AS_IN_INTERFACE_CLASS   AUDIO_CLASS
#define ALT0_AS_IN_INTERFACE_INDEX   0x00
#define ALT0_AS_IN_INTERFACE_PROTOCOL   NO_PROTOCOL
#define ALT0_AS_IN_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS
#define ALT0_AS_IN_NB_ENDPOINT   0x00
#define ALT0_AS_OUT_INTERFACE_CLASS   AUDIO_CLASS
#define ALT0_AS_OUT_INTERFACE_INDEX   0x00
#define ALT0_AS_OUT_INTERFACE_PROTOCOL   NO_PROTOCOL
#define ALT0_AS_OUT_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS
#define ALT0_AS_OUT_NB_ENDPOINT   0x00
#define ALT1_AS_IN_INTERFACE_CLASS   AUDIO_CLASS
#define ALT1_AS_IN_INTERFACE_INDEX   0x01
#define ALT1_AS_IN_INTERFACE_PROTOCOL   NO_PROTOCOL
#define ALT1_AS_IN_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS
#define ALT1_AS_IN_NB_ENDPOINT   0x01
#define ALT1_AS_OUT_INTERFACE_CLASS   AUDIO_CLASS
#define ALT1_AS_OUT_INTERFACE_INDEX   0x01
#define ALT1_AS_OUT_INTERFACE_PROTOCOL   NO_PROTOCOL
#define ALT1_AS_OUT_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS
#define ALT1_AS_OUT_NB_ENDPOINT   0x01
#define ALTERNATE_KBD   0
#define AS_IN_DELAY   0x01
#define AS_IN_FORMAT_TAG   AUDIO_FORMAT_TI_PCM
#define AS_IN_TERMINAL_LINK   MICRO_OUTPUT_TERMINAL_ID
#define AS_OUT_DELAY   0x01
#define AS_OUT_FORMAT_TAG   AUDIO_FORMAT_TI_PCM
#define AS_OUT_TERMINAL_LINK   SPEAKER_INPUT_TERMINAL_ID
#define AUDIO_CHANNEL_NAME
#define AUDIO_EP_IN_ATRIBUTES   0x00
#define AUDIO_EP_IN_DELAY_UNIT   0x00
#define AUDIO_EP_IN_LOCK_DELAY   0x0000
#define AUDIO_EP_OUT_ATRIBUTES   0x01
#define AUDIO_EP_OUT_DELAY_UNIT   0x00
#define AUDIO_EP_OUT_LOCK_DELAY   0x0000
#define CONF_ATTRIBUTES   USB_CONFIG_BUSPOWERED
#define CONF_INDEX   0
#define CONF_NB   1
#define DEVICE_CLASS   0
#define DEVICE_PROTOCOL   0
#define DEVICE_STATUS   BUS_POWERED
#define DEVICE_SUB_CLASS   0
#define ENDPOINT_NB_IN   (EP_AUDIO_IN | USB_ENDPOINT_IN)
#define ENDPOINT_NB_KBD   (EP_KBD_IN | USB_ENDPOINT_IN)
#define ENDPOINT_NB_OUT   (EP_AUDIO_OUT | USB_ENDPOINT_OUT)
#define EP_ATTRIBUTES_IN   TYPE_ISOCHRONOUS
#define EP_ATTRIBUTES_KBD   0x03
#define EP_ATTRIBUTES_OUT   (TYPE_ISOCHRONOUS | ( ENDPOINT_TYPE_ADAPTIVE << ENDPOINT_TYPE_OFFSET))
#define EP_CONTROL_LENGTH   64
#define EP_IN_LENGTH_KBD   8
#define EP_INTERVAL_IN   0x01
#define EP_INTERVAL_KBD   0x02
#define EP_INTERVAL_OUT   0x01
#define EP_SIZE_IN   (128)
#define EP_SIZE_KBD   EP_IN_LENGTH_KBD
#define EP_SIZE_OUT   (256)
#define IN_FORMAT_BIT_RESOLUTION   0x10
#define IN_FORMAT_FRAME_SIZE   0x02
#define IN_FORMAT_LSBYTE_SAMPLE_FREQ   0xAC44
#define IN_FORMAT_MSBYTE_SAMPLE_FREQ   0x00
#define IN_FORMAT_NB_CHANNELS   0x01
#define IN_FORMAT_SAMPLE_FREQ_NB   0x01
#define IN_FORMAT_TYPE   AUDIO_FORMAT_TYPE_I
#define INTERFACE_CLASS_KBD   HID_CLASS
#define INTERFACE_INDEX_KBD   0
#define INTERFACE_NB_KBD   3
#define INTERFACE_PROTOCOL_KBD   KEYBOARD_PROTOCOL
#define INTERFACE_STATUS   0x00
#define INTERFACE_SUB_CLASS_KBD   NO_SUBCLASS
#define LANG_ID   0x00
#define LANGUAGE_ID   0x0409
#define MAN_INDEX   0x01
#define MAX_POWER   50
#define MICRO_FEATURE_UNIT_CTRL_CH_1   0x00
#define MICRO_FEATURE_UNIT_CTRL_CH_MASTER   (AUDIO_FU_CONTROL_CS_MUTE|AUDIO_FU_CONTROL_CS_VOLUME)
#define MICRO_FEATURE_UNIT_ID   0x05
#define MICRO_FEATURE_UNIT_SOURCE_ID   MICRO_INPUT_TERMINAL_ID
#define MICRO_INPUT_TERMINAL_ASSOCIATION   0x00
#define MICRO_INPUT_TERMINAL_CH_NAME_ID   0x00
#define MICRO_INPUT_TERMINAL_CHANNEL_CONF   AUDIO_CHANNEL_NO_POSITION
#define MICRO_INPUT_TERMINAL_ID   0x04
#define MICRO_INPUT_TERMINAL_NAME_ID   0x00
#define MICRO_INPUT_TERMINAL_NB_CHANNELS   0x01
#define MICRO_INPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_INPUT_MICROPHONE
#define MICRO_OUTPUT_TERMINAL_ASSOCIATION   0x00
#define MICRO_OUTPUT_TERMINAL_ID   0x06
#define MICRO_OUTPUT_TERMINAL_NAME_ID   0x00
#define MICRO_OUTPUT_TERMINAL_SOURCE_ID   MICRO_FEATURE_UNIT_ID
#define MICRO_OUTPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_USB_STREAMING
#define NB_CONFIGURATION   1
#define NB_ENDPOINT_KBD   1
#define NB_INTERFACE   4
#define NB_OF_STREAMING_INTERFACE   0x02
#define OUT_FORMAT_BIT_RESOLUTION   0x10
#define OUT_FORMAT_FRAME_SIZE   0x02
#define OUT_FORMAT_MSBYTE_SAMPLE_FREQ   0x00
#define OUT_FORMAT_NB_CHANNELS   0x02
#define OUT_FORMAT_SAMPLE_FREQ_NB   0x03
#define OUT_FORMAT_TYPE   AUDIO_FORMAT_TYPE_I
#define PROD_INDEX   0x02
#define PRODUCT_ID   AUDIO_SPEAKER_MICRO_EXAMPLE_PID
#define RELEASE_NUMBER   0x1000
#define SN_INDEX   0x03
#define SPEAKER_FEATURE_UNIT_CTRL_CH_1   0x00
#define SPEAKER_FEATURE_UNIT_CTRL_CH_MASTER   (AUDIO_FU_CONTROL_CS_MUTE|AUDIO_FU_CONTROL_CS_VOLUME)
#define SPEAKER_FEATURE_UNIT_ID   0x02
#define SPEAKER_FEATURE_UNIT_SOURCE_ID   SPEAKER_INPUT_TERMINAL_ID
#define SPEAKER_INPUT_TERMINAL_ASSOCIATION   0x00
#define SPEAKER_INPUT_TERMINAL_CH_NAME_ID   0x00
#define SPEAKER_INPUT_TERMINAL_CHANNEL_CONF   AUDIO_CHANNEL_NO_POSITION
#define SPEAKER_INPUT_TERMINAL_ID   0x01
#define SPEAKER_INPUT_TERMINAL_NAME_ID   0x00
#define SPEAKER_INPUT_TERMINAL_NB_CHANNELS   0x01
#define SPEAKER_INPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_USB_STREAMING
#define SPEAKER_OUTPUT_TERMINAL_ASSOCIATION   0x00
#define SPEAKER_OUTPUT_TERMINAL_ID   0x03
#define SPEAKER_OUTPUT_TERMINAL_NAME_ID   0x00
#define SPEAKER_OUTPUT_TERMINAL_SOURCE_ID   SPEAKER_FEATURE_UNIT_ID
#define SPEAKER_OUTPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_OUTPUT_SPEAKER
#define STD_AS_IN_INTERFACE_NB   0x02
#define STD_AS_OUT_INTERFACE_NB   0x01
#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   20
#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 AC_ALTERNATE   0

Definition at line 100 of file usb_descriptors.h.

#define AC_INTERFACE_CLASS   AUDIO_CLASS

Definition at line 102 of file usb_descriptors.h.

#define AC_INTERFACE_INDEX   0

Definition at line 105 of file usb_descriptors.h.

#define AC_INTERFACE_NB   0

Definition at line 99 of file usb_descriptors.h.

Referenced by check_audio_control_request().

#define AC_INTERFACE_PROTOCOL   NO_PROTOCOL

Definition at line 104 of file usb_descriptors.h.

#define AC_INTERFACE_SUB_CLASS   AUDIOCONTROL_SUBCLASS

Definition at line 103 of file usb_descriptors.h.

#define AC_NB_ENDPOINT   0

Definition at line 101 of file usb_descriptors.h.

#define ALT0_AS_IN_INTERFACE_CLASS   AUDIO_CLASS

Definition at line 208 of file usb_descriptors.h.

#define ALT0_AS_IN_INTERFACE_INDEX   0x00

Definition at line 206 of file usb_descriptors.h.

#define ALT0_AS_IN_INTERFACE_PROTOCOL   NO_PROTOCOL

Definition at line 210 of file usb_descriptors.h.

#define ALT0_AS_IN_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS

Definition at line 209 of file usb_descriptors.h.

#define ALT0_AS_IN_NB_ENDPOINT   0x00

Definition at line 207 of file usb_descriptors.h.

#define ALT0_AS_OUT_INTERFACE_CLASS   AUDIO_CLASS

Definition at line 171 of file usb_descriptors.h.

#define ALT0_AS_OUT_INTERFACE_INDEX   0x00

Definition at line 169 of file usb_descriptors.h.

#define ALT0_AS_OUT_INTERFACE_PROTOCOL   NO_PROTOCOL

Definition at line 173 of file usb_descriptors.h.

#define ALT0_AS_OUT_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS

Definition at line 172 of file usb_descriptors.h.

#define ALT0_AS_OUT_NB_ENDPOINT   0x00

Definition at line 170 of file usb_descriptors.h.

#define ALT1_AS_IN_INTERFACE_CLASS   AUDIO_CLASS

Definition at line 214 of file usb_descriptors.h.

#define ALT1_AS_IN_INTERFACE_INDEX   0x01

Definition at line 212 of file usb_descriptors.h.

#define ALT1_AS_IN_INTERFACE_PROTOCOL   NO_PROTOCOL

Definition at line 216 of file usb_descriptors.h.

#define ALT1_AS_IN_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS

Definition at line 215 of file usb_descriptors.h.

#define ALT1_AS_IN_NB_ENDPOINT   0x01

Definition at line 213 of file usb_descriptors.h.

#define ALT1_AS_OUT_INTERFACE_CLASS   AUDIO_CLASS

Definition at line 177 of file usb_descriptors.h.

#define ALT1_AS_OUT_INTERFACE_INDEX   0x01

Definition at line 175 of file usb_descriptors.h.

#define ALT1_AS_OUT_INTERFACE_PROTOCOL   NO_PROTOCOL

Definition at line 179 of file usb_descriptors.h.

#define ALT1_AS_OUT_INTERFACE_SUB_CLASS   AUDIOSTREAMING_SUBCLASS

Definition at line 178 of file usb_descriptors.h.

#define ALT1_AS_OUT_NB_ENDPOINT   0x01

Definition at line 176 of file usb_descriptors.h.

#define ALTERNATE_KBD   0

Definition at line 240 of file usb_descriptors.h.

#define AS_IN_DELAY   0x01

Definition at line 219 of file usb_descriptors.h.

#define AS_IN_FORMAT_TAG   AUDIO_FORMAT_TI_PCM

Definition at line 220 of file usb_descriptors.h.

#define AS_IN_TERMINAL_LINK   MICRO_OUTPUT_TERMINAL_ID

Definition at line 218 of file usb_descriptors.h.

#define AS_OUT_DELAY   0x01

Definition at line 182 of file usb_descriptors.h.

#define AS_OUT_FORMAT_TAG   AUDIO_FORMAT_TI_PCM

Definition at line 183 of file usb_descriptors.h.

#define AS_OUT_TERMINAL_LINK   SPEAKER_INPUT_TERMINAL_ID

Definition at line 181 of file usb_descriptors.h.

#define AUDIO_CHANNEL_NAME

Value:

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

Definition at line 324 of file usb_descriptors.h.

#define AUDIO_EP_IN_ATRIBUTES   0x00

Definition at line 234 of file usb_descriptors.h.

#define AUDIO_EP_IN_DELAY_UNIT   0x00

Definition at line 235 of file usb_descriptors.h.

#define AUDIO_EP_IN_LOCK_DELAY   0x0000

Definition at line 236 of file usb_descriptors.h.

#define AUDIO_EP_OUT_ATRIBUTES   0x01

Definition at line 198 of file usb_descriptors.h.

#define AUDIO_EP_OUT_DELAY_UNIT   0x00

Definition at line 199 of file usb_descriptors.h.

#define AUDIO_EP_OUT_LOCK_DELAY   0x0000

Definition at line 200 of file usb_descriptors.h.

#define CONF_ATTRIBUTES   USB_CONFIG_BUSPOWERED

Definition at line 95 of file usb_descriptors.h.

#define CONF_INDEX   0

Definition at line 94 of file usb_descriptors.h.

#define CONF_NB   1

Definition at line 93 of file usb_descriptors.h.

#define DEVICE_CLASS   0

Definition at line 78 of file usb_descriptors.h.

#define DEVICE_PROTOCOL   0

Definition at line 80 of file usb_descriptors.h.

#define DEVICE_STATUS   BUS_POWERED

Definition at line 263 of file usb_descriptors.h.

#define DEVICE_SUB_CLASS   0

Definition at line 79 of file usb_descriptors.h.

#define ENDPOINT_NB_IN   (EP_AUDIO_IN | USB_ENDPOINT_IN)

Definition at line 114 of file usb_descriptors.h.

#define ENDPOINT_NB_KBD   (EP_KBD_IN | USB_ENDPOINT_IN)

Definition at line 248 of file usb_descriptors.h.

#define ENDPOINT_NB_OUT   (EP_AUDIO_OUT | USB_ENDPOINT_OUT)

Definition at line 108 of file usb_descriptors.h.

#define EP_ATTRIBUTES_IN   TYPE_ISOCHRONOUS

Definition at line 115 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_ATTRIBUTES_KBD   0x03

Definition at line 249 of file usb_descriptors.h.

#define EP_ATTRIBUTES_OUT   (TYPE_ISOCHRONOUS | ( ENDPOINT_TYPE_ADAPTIVE << ENDPOINT_TYPE_OFFSET))

Definition at line 109 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_CONTROL_LENGTH   64

Definition at line 81 of file usb_descriptors.h.

Referenced by hid_get_descriptor().

#define EP_IN_LENGTH_KBD   8

Definition at line 250 of file usb_descriptors.h.

#define EP_INTERVAL_IN   0x01

Definition at line 117 of file usb_descriptors.h.

#define EP_INTERVAL_KBD   0x02

Definition at line 252 of file usb_descriptors.h.

#define EP_INTERVAL_OUT   0x01

Definition at line 111 of file usb_descriptors.h.

#define EP_SIZE_IN   (128)

Definition at line 116 of file usb_descriptors.h.

Referenced by device_audio_task(), and usb_user_endpoint_init().

#define EP_SIZE_KBD   EP_IN_LENGTH_KBD

Definition at line 251 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define EP_SIZE_OUT   (256)

Definition at line 110 of file usb_descriptors.h.

Referenced by usb_user_endpoint_init().

#define IN_FORMAT_BIT_RESOLUTION   0x10

Definition at line 225 of file usb_descriptors.h.

#define IN_FORMAT_FRAME_SIZE   0x02

Definition at line 224 of file usb_descriptors.h.

#define IN_FORMAT_LSBYTE_SAMPLE_FREQ   0xAC44

Definition at line 230 of file usb_descriptors.h.

#define IN_FORMAT_MSBYTE_SAMPLE_FREQ   0x00

Definition at line 232 of file usb_descriptors.h.

#define IN_FORMAT_NB_CHANNELS   0x01

Definition at line 223 of file usb_descriptors.h.

#define IN_FORMAT_SAMPLE_FREQ_NB   0x01

Definition at line 226 of file usb_descriptors.h.

#define IN_FORMAT_TYPE   AUDIO_FORMAT_TYPE_I

Definition at line 222 of file usb_descriptors.h.

#define INTERFACE_CLASS_KBD   HID_CLASS

Definition at line 242 of file usb_descriptors.h.

#define INTERFACE_INDEX_KBD   0

Definition at line 245 of file usb_descriptors.h.

#define INTERFACE_NB_KBD   3

Definition at line 239 of file usb_descriptors.h.

Referenced by usb_hid_get_idle(), and usb_hid_set_idle().

#define INTERFACE_PROTOCOL_KBD   KEYBOARD_PROTOCOL

Definition at line 244 of file usb_descriptors.h.

#define INTERFACE_STATUS   0x00

Definition at line 264 of file usb_descriptors.h.

#define INTERFACE_SUB_CLASS_KBD   NO_SUBCLASS

Definition at line 243 of file usb_descriptors.h.

#define LANG_ID   0x00

Definition at line 262 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define LANGUAGE_ID   0x0409

Definition at line 332 of file usb_descriptors.h.

#define MAN_INDEX   0x01

Definition at line 85 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define MAX_POWER   50

Definition at line 96 of file usb_descriptors.h.

#define MICRO_FEATURE_UNIT_CTRL_CH_1   0x00

Definition at line 157 of file usb_descriptors.h.

#define MICRO_FEATURE_UNIT_CTRL_CH_MASTER   (AUDIO_FU_CONTROL_CS_MUTE|AUDIO_FU_CONTROL_CS_VOLUME)

Definition at line 156 of file usb_descriptors.h.

#define MICRO_FEATURE_UNIT_ID   0x05

Definition at line 154 of file usb_descriptors.h.

Referenced by check_audio_control_request().

#define MICRO_FEATURE_UNIT_SOURCE_ID   MICRO_INPUT_TERMINAL_ID

Definition at line 155 of file usb_descriptors.h.

#define MICRO_INPUT_TERMINAL_ASSOCIATION   0x00

Definition at line 148 of file usb_descriptors.h.

#define MICRO_INPUT_TERMINAL_CH_NAME_ID   0x00

Definition at line 151 of file usb_descriptors.h.

#define MICRO_INPUT_TERMINAL_CHANNEL_CONF   AUDIO_CHANNEL_NO_POSITION

Definition at line 150 of file usb_descriptors.h.

#define MICRO_INPUT_TERMINAL_ID   0x04

Definition at line 146 of file usb_descriptors.h.

#define MICRO_INPUT_TERMINAL_NAME_ID   0x00

Definition at line 152 of file usb_descriptors.h.

#define MICRO_INPUT_TERMINAL_NB_CHANNELS   0x01

Definition at line 149 of file usb_descriptors.h.

#define MICRO_INPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_INPUT_MICROPHONE

Definition at line 147 of file usb_descriptors.h.

#define MICRO_OUTPUT_TERMINAL_ASSOCIATION   0x00

Definition at line 161 of file usb_descriptors.h.

#define MICRO_OUTPUT_TERMINAL_ID   0x06

Definition at line 159 of file usb_descriptors.h.

#define MICRO_OUTPUT_TERMINAL_NAME_ID   0x00

Definition at line 163 of file usb_descriptors.h.

#define MICRO_OUTPUT_TERMINAL_SOURCE_ID   MICRO_FEATURE_UNIT_ID

Definition at line 162 of file usb_descriptors.h.

#define MICRO_OUTPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_USB_STREAMING

Definition at line 160 of file usb_descriptors.h.

#define NB_CONFIGURATION   1

Definition at line 88 of file usb_descriptors.h.

#define NB_ENDPOINT_KBD   1

Definition at line 241 of file usb_descriptors.h.

#define NB_INTERFACE   4

Definition at line 92 of file usb_descriptors.h.

#define NB_OF_STREAMING_INTERFACE   0x02

Definition at line 121 of file usb_descriptors.h.

#define OUT_FORMAT_BIT_RESOLUTION   0x10

Definition at line 188 of file usb_descriptors.h.

#define OUT_FORMAT_FRAME_SIZE   0x02

Definition at line 187 of file usb_descriptors.h.

#define OUT_FORMAT_MSBYTE_SAMPLE_FREQ   0x00

Definition at line 196 of file usb_descriptors.h.

#define OUT_FORMAT_NB_CHANNELS   0x02

Definition at line 186 of file usb_descriptors.h.

#define OUT_FORMAT_SAMPLE_FREQ_NB   0x03

Definition at line 193 of file usb_descriptors.h.

#define OUT_FORMAT_TYPE   AUDIO_FORMAT_TYPE_I

Definition at line 185 of file usb_descriptors.h.

#define PROD_INDEX   0x02

Definition at line 86 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define PRODUCT_ID   AUDIO_SPEAKER_MICRO_EXAMPLE_PID

Definition at line 83 of file usb_descriptors.h.

#define RELEASE_NUMBER   0x1000

Definition at line 84 of file usb_descriptors.h.

#define SN_INDEX   0x03

Definition at line 87 of file usb_descriptors.h.

Referenced by usb_user_get_descriptor().

#define SPEAKER_FEATURE_UNIT_CTRL_CH_1   0x00

Definition at line 136 of file usb_descriptors.h.

#define SPEAKER_FEATURE_UNIT_CTRL_CH_MASTER   (AUDIO_FU_CONTROL_CS_MUTE|AUDIO_FU_CONTROL_CS_VOLUME)

Definition at line 135 of file usb_descriptors.h.

#define SPEAKER_FEATURE_UNIT_ID   0x02

Definition at line 133 of file usb_descriptors.h.

Referenced by check_audio_control_request().

#define SPEAKER_FEATURE_UNIT_SOURCE_ID   SPEAKER_INPUT_TERMINAL_ID

Definition at line 134 of file usb_descriptors.h.

#define SPEAKER_INPUT_TERMINAL_ASSOCIATION   0x00

Definition at line 127 of file usb_descriptors.h.

#define SPEAKER_INPUT_TERMINAL_CH_NAME_ID   0x00

Definition at line 130 of file usb_descriptors.h.

#define SPEAKER_INPUT_TERMINAL_CHANNEL_CONF   AUDIO_CHANNEL_NO_POSITION

Definition at line 129 of file usb_descriptors.h.

#define SPEAKER_INPUT_TERMINAL_ID   0x01

Definition at line 125 of file usb_descriptors.h.

#define SPEAKER_INPUT_TERMINAL_NAME_ID   0x00

Definition at line 131 of file usb_descriptors.h.

#define SPEAKER_INPUT_TERMINAL_NB_CHANNELS   0x01

Definition at line 128 of file usb_descriptors.h.

#define SPEAKER_INPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_USB_STREAMING

Definition at line 126 of file usb_descriptors.h.

#define SPEAKER_OUTPUT_TERMINAL_ASSOCIATION   0x00

Definition at line 140 of file usb_descriptors.h.

#define SPEAKER_OUTPUT_TERMINAL_ID   0x03

Definition at line 138 of file usb_descriptors.h.

#define SPEAKER_OUTPUT_TERMINAL_NAME_ID   0x00

Definition at line 142 of file usb_descriptors.h.

#define SPEAKER_OUTPUT_TERMINAL_SOURCE_ID   SPEAKER_FEATURE_UNIT_ID

Definition at line 141 of file usb_descriptors.h.

#define SPEAKER_OUTPUT_TERMINAL_TYPE   AUDIO_TE_TYPE_OUTPUT_SPEAKER

Definition at line 139 of file usb_descriptors.h.

#define STD_AS_IN_INTERFACE_NB   0x02

Definition at line 204 of file usb_descriptors.h.

#define STD_AS_OUT_INTERFACE_NB   0x01

Definition at line 167 of file usb_descriptors.h.

 
#define Usb_get_conf_desc_length (  )     (sizeof (usb_conf_desc))

Definition at line 71 of file usb_descriptors.h.

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

Definition at line 70 of file usb_descriptors.h.

 
#define Usb_get_dev_desc_length (  )     (sizeof (usb_dev_desc))

Definition at line 69 of file usb_descriptors.h.

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

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

#define USB_MN_LENGTH   5

Definition at line 271 of file usb_descriptors.h.

#define USB_PN_LENGTH   20

Definition at line 281 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(' ') \
 ,Usb_unicode('A') \
 ,Usb_unicode('U') \
 ,Usb_unicode('D') \
 ,Usb_unicode('I') \
 ,Usb_unicode('O') \
 ,Usb_unicode(' ') \
 ,Usb_unicode('D') \
 ,Usb_unicode('E') \
 ,Usb_unicode('M') \
 ,Usb_unicode('O') \
}

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

#define USB_SN_LENGTH   13

Definition at line 306 of file usb_descriptors.h.

#define USB_SPECIFICATION   0x0200

Definition at line 77 of file usb_descriptors.h.

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

Definition at line 67 of file usb_descriptors.h.

#define VENDOR_ID   ATMEL_VID

Definition at line 82 of file usb_descriptors.h.


Generated on Fri Feb 19 02:32:03 2010 for AVR32 - USB AUDIO Example by  doxygen 1.5.5