Sonochan II 0.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
usb_descriptors.h File Reference

USB identifiers. More...

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

Go to the source code of this file.

## Data Structures
struct | S_usb_wl
| struct usb_WL More...
struct | S_usb_ait
| struct usb_AIT More...
struct | S_usb_aot
| struct usb_AOT More...
struct | S_usb_ain
| struct usb_AIN More...
struct | S_usb_aia
| struct usb_AIA More...
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_interface_descriptor
| USB Interface Descriptor. More...
struct | S_usb_endpoint_descriptor
| USB Endpoint Descriptor. More...
struct | S_usb_interface_association_descriptor
| USB Interface Association Descriptor. More...
struct | S_usb_cdc_header_func_descriptor
struct | S_usb_cdc_call_man_func_descriptor
struct | S_usb_cdc_abst_control_mana_descriptor
struct | S_usb_cdc_union_func_descriptor
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 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_clock_selector
| struct usb_st_clock_selector More...
struct | S_usb_hid_descriptor
| USB HID Descriptor. More...
struct | S_usb_ac_interface_descriptor_1
struct | S_usb_in_ter_descriptor_1
| USB INPUT Terminal Descriptor. More...
struct | S_usb_feature_unit_descriptor_1
| USB Audio Feature Unit descriptor. More...
struct | S_usb_out_ter_descriptor_1
| USB OUTPUT Terminal Descriptor. More...
struct | S_usb_as_g_interface_descriptor_1
| USB Standard AS interface Descriptor. More...
struct | S_usb_format_type_1
| Audio Format Type descriptor. More...
struct | S_usb_format_type_1_one_freq
| Audio Format Type descriptor. More...
struct | S_usb_endpoint_audio_specific_1
| Endpoint AUDIO Specific descriptor. More...
struct | S_usb_endpoint_audio_descriptor_1
| Usb Audio Endpoint Descriptor. More...
struct | S_usb_ac_interface_descriptor_2
struct | S_usb_clock_source_descriptor
| Clock Source descriptor pp 4.7.2.1. More...
struct | S_usb_clock_selector_descriptor
| Clock Selector descriptor pp 4.7.2.2. More...
struct | S_usb_clock_multiplier_descriptor
| Clock Multiplier descriptor pp 4.7.2.3. More...
struct | S_usb_in_ter_descriptor_2
| USB INPUT Terminal Descriptor pp 4.7.2.4. More...
struct | S_usb_out_ter_descriptor_2
| USB OUTPUT Terminal Descriptor pp 4.7.2.5. More...
struct | S_usb_feature_unit_descriptor_2
| USB Audio Feature Unit descriptor pp 4.7.2.8. More...
struct | S_usb_as_interface_descriptor
| Audio Streaming Interface Descriptors pp 4.9. More...
struct | S_usb_as_g_interface_descriptor_2
| USB Class-Specific AS general interface descriptor pp 4.9.2. More...
struct | S_usb_format_type_2
| Class-Specific Audio Format Type descriptor pp 4.9.3 -> 2.3.1.6 Type I Format. More...
struct | S_usb_endpoint_audio_descriptor_2
| Usb Standard AS Isochronous Audio Data Endpoint Descriptors pp 4.10.1.1. More...
struct | S_usb_endpoint_audio_specific_2
| Usb Class_Specific AS Isochronous Audio Data Endpoint Descriptors pp 4.10.1.2. More...
struct | S_usb_endpoint_audio_feedback
| Usb Standard AS Isochronous Feedback Endpoint Descriptors pp 4.10.2.1. More...

## Macros
#define | Usb_unicode(c) (Usb_format_mcu_to_usb_data(16, (U16)(c)))
#define | Usb_get_dev_desc_pointer() image_get_dev_desc_pointer()
#define | Usb_get_dev_desc_length() image_get_dev_desc_length()
#define | Usb_get_conf_desc_pointer() image_get_conf_desc_fs_pointer()
#define | Usb_get_conf_desc_length() image_get_conf_desc_fs_length()
#define | Usb_get_conf_desc_hs_pointer() image_get_conf_desc_hs_pointer()
#define | Usb_get_conf_desc_hs_length() image_get_conf_desc_hs_length()
#define | Usb_get_conf_desc_fs_pointer() image_get_conf_desc_fs_pointer()
#define | Usb_get_conf_desc_fs_length() image_get_conf_desc_fs_length()
#define | Usb_get_qualifier_desc_pointer() image_get_qualifier_desc_pointer()
#define | Usb_get_qualifier_desc_length() image_get_qualifier_desc_length()
#define | USB_SPECIFICATION 0x0200
#define | DEVICE_CLASS 0xef
#define | DEVICE_SUB_CLASS 0x02
#define | DEVICE_PROTOCOL 0x01
#define | EP_CONTROL_LENGTH 64
#define | AUDIO_VENDOR_ID 0x16d0
#define | AUDIO_PRODUCT_ID_1 0x0763
#define | AUDIO_PRODUCT_ID_2 0x0762
#define | RELEASE_NUMBER 0x1000
#define | MAN_INDEX 0x01
#define | PROD_INDEX 0x02
#define | SN_INDEX 0x03
#define | CLOCK_SOURCE_1_INDEX 0x04
#define | CLOCK_SOURCE_2_INDEX 0x05
#define | CLOCK_SELECTOR_INDEX 0x06
#define | WL_INDEX 0x07
#define | AIT_INDEX 0x08
#define | AOT_INDEX 0x09
#define | AIN_INDEX 0x0A
#define | AIA_INDEX 0x0B
#define | NB_CONFIGURATION 1
#define | DEVICE_STATUS SELF_POWERED
#define | INTERFACE_STATUS 0x00
#define | LANG_ID 0x00
#define | USB_MN_LENGTH 4
#define | USB_MANUFACTURER_NAME
#define | USB_PN_LENGTH 13
#define | USB_PRODUCT_NAME
#define | USB_SN_LENGTH 13
#define | USB_SERIAL_NUMBER
#define | USB_CS1_LENGTH 7
#define | USB_CLOCK_SOURCE_1
#define | USB_CS2_LENGTH 7
#define | USB_CLOCK_SOURCE_2
#define | USB_CX_LENGTH 12
#define | USB_CLOCK_SELECTOR
#define | USB_WL_LENGTH 10
#define | USB_WL
#define | USB_AIT_LENGTH 12
#define | USB_AIT
#define | USB_AOT_LENGTH 13
#define | USB_AOT
#define | USB_AIN_LENGTH 11
#define | USB_AIN
#define | USB_AIA_LENGTH 12
#define | USB_AIA
#define | LANGUAGE_ID 0x0409
#define | USB_HID_REPORT_DESC 47

## Variables
const S_usb_manufacturer_string_descriptor | usb_user_manufacturer_string_descriptor
const S_usb_product_string_descriptor | usb_user_product_string_descriptor
const S_usb_serial_number | usb_user_serial_number
const S_usb_language_id | usb_user_language_id
const S_usb_wl | usb_user_wl
const S_usb_ait | usb_user_ait
const S_usb_aot | usb_user_aot
const S_usb_ain | usb_user_ain
const S_usb_aia | usb_user_aia
const U8 | usb_hid_report_descriptor [USB_HID_REPORT_DESC]
U16 | configTSK_USB_DEV_PERIOD

## Detailed Description

USB identifiers.

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

- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All AVR32 devices with a USB module can be used.
- AppNote:

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

## Macro Definition Documentation

#define AIA_INDEX 0x0B

#define AIN_INDEX 0x0A

#define AIT_INDEX 0x08

#define AOT_INDEX 0x09

#define AUDIO_PRODUCT_ID_1 0x0763

#define AUDIO_PRODUCT_ID_2 0x0762

#define AUDIO_VENDOR_ID 0x16d0

#define CLOCK_SELECTOR_INDEX 0x06

#define CLOCK_SOURCE_1_INDEX 0x04

#define CLOCK_SOURCE_2_INDEX 0x05

#define DEVICE_CLASS 0xef

#define DEVICE_PROTOCOL 0x01

#define DEVICE_STATUS SELF_POWERED

#define DEVICE_SUB_CLASS 0x02

#define EP_CONTROL_LENGTH 64

#define INTERFACE_STATUS 0x00

#define LANG_ID 0x00

#define LANGUAGE_ID 0x0409

#define MAN_INDEX 0x01

#define NB_CONFIGURATION 1

#define PROD_INDEX 0x02

#define RELEASE_NUMBER 0x1000

#define SN_INDEX 0x03

#define USB_AIA

Value:
{\
Usb_unicode('A'),\
Usb_unicode('u'),\
Usb_unicode('d'),\
Usb_unicode('i'),\
Usb_unicode('o'),\
Usb_unicode(' '),\
Usb_unicode('I'),\
Usb_unicode('n'),\
Usb_unicode(' '),\
Usb_unicode('A'),\
Usb_unicode('l'),\
Usb_unicode('t')\
}

#define USB_AIA_LENGTH 12

#define USB_AIN

Value:
{\
Usb_unicode('W'),\
Usb_unicode('i'),\
Usb_unicode('d'),\
Usb_unicode('g'),\
Usb_unicode('e'),\
Usb_unicode('t'),\
Usb_unicode('-'),\
Usb_unicode('L'),\
Usb_unicode('i'),\
Usb_unicode('t'),\
Usb_unicode('e')\
}

#define USB_AIN_LENGTH 11

#define USB_AIT

Value:
{\
Usb_unicode('A'),\
Usb_unicode('u'),\
Usb_unicode('d'),\
Usb_unicode('i'),\
Usb_unicode('o'),\
Usb_unicode(' '),\
Usb_unicode('I'),\
Usb_unicode('n'),\
Usb_unicode(' '),\
Usb_unicode('T'),\
Usb_unicode('r'),\
Usb_unicode('m')\
}

#define USB_AIT_LENGTH 12

#define USB_AOT

Value:
{\
Usb_unicode('A'),\
Usb_unicode('u'),\
Usb_unicode('d'),\
Usb_unicode('i'),\
Usb_unicode('o'),\
Usb_unicode(' '),\
Usb_unicode('O'),\
Usb_unicode('u'),\
Usb_unicode('t'),\
Usb_unicode(' '),\
Usb_unicode('T'),\
Usb_unicode('r'),\
Usb_unicode('m')\
}

#define USB_AOT_LENGTH 13

#define USB_CLOCK_SELECTOR

Value:
{\
Usb_unicode('S'),\
Usb_unicode('e'),\
Usb_unicode('l'),\
Usb_unicode('e'),\
Usb_unicode('c'),\
Usb_unicode('t'),\
Usb_unicode(' '),\
Usb_unicode('c'),\
Usb_unicode('l'),\
Usb_unicode('o'),\
Usb_unicode('c'),\
Usb_unicode('k')\
}

#define USB_CLOCK_SOURCE_1

Value:
{\
Usb_unicode('C'),\
Usb_unicode('l'),\
Usb_unicode('o'),\
Usb_unicode('c'),\
Usb_unicode('k'),\
Usb_unicode(' '),\
Usb_unicode('1') \
}

#define USB_CLOCK_SOURCE_2

Value:
{\
Usb_unicode('C'),\
Usb_unicode('l'),\
Usb_unicode('o'),\
Usb_unicode('c'),\
Usb_unicode('k'),\
Usb_unicode(' '),\
Usb_unicode('2')\
}

#define USB_CS1_LENGTH 7

#define USB_CS2_LENGTH 7

#define USB_CX_LENGTH 12

#define Usb_get_conf_desc_fs_length | ( | ) |  | image_get_conf_desc_fs_length()

#define Usb_get_conf_desc_fs_pointer | ( | ) |  | image_get_conf_desc_fs_pointer()

#define Usb_get_conf_desc_hs_length | ( | ) |  | image_get_conf_desc_hs_length()

#define Usb_get_conf_desc_hs_pointer | ( | ) |  | image_get_conf_desc_hs_pointer()

#define Usb_get_conf_desc_length | ( | ) |  | image_get_conf_desc_fs_length()

#define Usb_get_conf_desc_pointer | ( | ) |  | image_get_conf_desc_fs_pointer()

#define Usb_get_dev_desc_length | ( | ) |  | image_get_dev_desc_length()

#define Usb_get_dev_desc_pointer | ( | ) |  | image_get_dev_desc_pointer()

#define Usb_get_qualifier_desc_length | ( | ) |  | image_get_qualifier_desc_length()

#define Usb_get_qualifier_desc_pointer | ( | ) |  | image_get_qualifier_desc_pointer()

#define USB_HID_REPORT_DESC 47

#define USB_MANUFACTURER_NAME

Value:
{\
Usb_unicode('A'),\
Usb_unicode('L'),\
Usb_unicode('C'),\
Usb_unicode('Z')\
}

#define USB_MN_LENGTH 4

#define USB_PN_LENGTH 13

#define USB_PRODUCT_NAME

Value:
{\
Usb_unicode('S'), Usb_unicode('o'), Usb_unicode('n'), Usb_unicode('o'), Usb_unicode('c'),\
Usb_unicode('h'), Usb_unicode('a'), Usb_unicode('n'), Usb_unicode(' '), \
Usb_unicode('m'), Usb_unicode('k'), Usb_unicode('I'), Usb_unicode('I')\
}

#define USB_SERIAL_NUMBER

Value:
{\
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('0'),\
Usb_unicode('.'),\
Usb_unicode('1') \
}

#define USB_SN_LENGTH 13

#define USB_SPECIFICATION 0x0200

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

#define USB_WL

Value:
{\
Usb_unicode('S'),\
Usb_unicode('D'),\
Usb_unicode('R'),\
Usb_unicode('-'),\
Usb_unicode('W'),\
Usb_unicode('i'),\
Usb_unicode('d'),\
Usb_unicode('g'),\
Usb_unicode('e'),\
Usb_unicode('t')\
}

#define USB_WL_LENGTH 10

#define WL_INDEX 0x07

## Variable Documentation

U16 configTSK_USB_DEV_PERIOD

const U8 usb_hid_report_descriptor[USB_HID_REPORT_DESC]

const S_usb_aia usb_user_aia

const S_usb_ain usb_user_ain

const S_usb_ait usb_user_ait

const S_usb_aot usb_user_aot

const S_usb_language_id usb_user_language_id

const S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor

const S_usb_product_string_descriptor usb_user_product_string_descriptor

const S_usb_serial_number usb_user_serial_number

const S_usb_wl usb_user_wl