#include "config.h"#include "modules/usb/device_chap9/usb_standard_request.h"#include "conf_usb.h"
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_interface_descriptor |
| Usb Interface Descriptor. More... | |
| struct | S_usb_ac_interface_descriptor |
| A U D I O Specific Class-Specific AC Interface Descriptor. More... | |
| struct | S_usb_in_ter_descriptor |
| Class-Specific Input Terminal Descriptor. More... | |
| struct | S_usb_feature_unit_descriptor |
| Class-Specific Feature Unit Descriptor. More... | |
| struct | S_usb_out_ter_descriptor |
| Class-Specific Output Terminal Descriptor. More... | |
| struct | S_usb_as_interface_descriptor |
| Class-Specific AS Interface Descriptor. More... | |
| struct | S_usb_format_type |
| Audio Format Type descriptor. More... | |
| struct | S_usb_endpoint_audio_specific |
| Endpoint AUDIO Specific descriptor. More... | |
| struct | S_usb_endpoint_audio_descriptor |
| Usb Audio Endpoint Descriptor. More... | |
| struct | S_usb_endpoint_descriptor |
| Usb Endpoint 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_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.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 64 |
| #define | VENDOR_ID VID_ATMEL |
| #define | PRODUCT_ID PID_MegaAUDIO_IN |
| #define | RELEASE_NUMBER 0x1000 |
| #define | MAN_INDEX 0x01 |
| #define | PROD_INDEX 0x02 |
| #define | SN_INDEX 0x03 |
| #define | NB_CONFIGURATION 1 |
| #define | NB_INTERFACE 2 |
| #define | CONF_NB 1 |
| #define | CONF_INDEX 0 |
| #define | CONF_ATTRIBUTES USB_CONFIG_BUSPOWERED |
| #define | MAX_POWER 50 |
| #define | AC_INTERFACE_NB 0 |
| #define | AC_ALTERNATE 0 |
| #define | AC_NB_ENDPOINT 0 |
| #define | AC_INTERFACE_CLASS AUDIO_CLASS |
| #define | AC_INTERFACE_SUB_CLASS AUDIO_SUB_CLASS_CONTROL |
| #define | AC_INTERFACE_PROTOCOL NO_PROTOCOL |
| #define | AC_INTERFACE_INDEX 0 |
| #define | ENDPOINT_NB_1 (EP_AUDIO_IN | USB_ENDPOINT_IN) |
| #define | EP_ATTRIBUTES_1 0x01 |
| #define | EP_IN_LENGTH 16 |
| #define | EP_SIZE_1 EP_IN_LENGTH |
| #define | EP_INTERVAL_1 0x01 |
| #define | NB_OF_STREAMING_INTERFACE 0x01 |
| #define | INPUT_TERMINAL_ID 0x01 |
| #define | INPUT_TERMINAL_TYPE AUDIO_TE_TYPE_INPUT_MICROPHONE |
| #define | INPUT_TERMINAL_ASSOCIATION 0x00 |
| #define | INPUT_TERMINAL_NB_CHANNELS 0x01 |
| #define | INPUT_TERMINAL_CHANNEL_CONF AUDIO_CHANNEL_NO_POSITION |
| #define | INPUT_TERMINAL_CH_NAME_ID 0x00 |
| #define | FEATURE_UNIT_ID 0x02 |
| #define | FEATURE_UNIT_SOURCE_ID INPUT_TERMINAL_ID |
| #define | FEATURE_UNIT_CTRL_CH_MASTER (AUDIO_FU_CONTROL_CS_MUTE|AUDIO_FU_CONTROL_CS_VOLUME) |
| #define | FEATURE_UNIT_CTRL_CH_1 0x00 |
| #define | OUTPUT_TERMINAL_ID 0x03 |
| #define | OUTPUT_TERMINAL_TYPE AUDIO_TE_TYPE_USB_STREAMING |
| #define | OUTPUT_TERMINAL_ASSOCIATION 0x00 |
| #define | OUTPUT_TERMINAL_SOURCE_ID FEATURE_UNIT_ID |
| #define | STD_AS_INTERFACE_NB 0x01 |
| #define | ALT0_AS_INTERFACE_INDEX 0x00 |
| #define | ALT0_AS_NB_ENDPOINT 0x00 |
| #define | ALT0_AS_INTERFACE_CLASS AUDIO_CLASS |
| #define | ALT0_AS_INTERFACE_SUB_CLASS AUDIO_SUB_CLASS_STREAMING |
| #define | ALT0_AS_INTERFACE_PROTOCOL NO_PROTOCOL |
| #define | ALT1_AS_INTERFACE_INDEX 0x01 |
| #define | ALT1_AS_NB_ENDPOINT 0x01 |
| #define | ALT1_AS_INTERFACE_CLASS AUDIO_CLASS |
| #define | ALT1_AS_INTERFACE_SUB_CLASS AUDIO_SUB_CLASS_STREAMING |
| #define | ALT1_AS_INTERFACE_PROTOCOL NO_PROTOCOL |
| #define | AS_TERMINAL_LINK 0x03 |
| #define | AS_DELAY 0x01 |
| #define | AS_FORMAT_TAG AUDIO_FORMAT_TI_PCM |
| #define | FORMAT_TYPE AUDIO_FORMAT_TYPE_I |
| #define | FORMAT_NB_CHANNELS 0x01 |
| #define | FORMAT_FRAME_SIZE 0x02 |
| #define | FORMAT_BIT_RESOLUTION 0x10 |
| #define | FORMAT_SAMPLE_FREQ_NB 0x01 |
| #define | FORMAT_LSBYTE_SAMPLE_FREQ 0x1F40 |
| #define | FORMAT_MSBYTE_SAMPLE_FREQ 0x00 |
| #define | AUDIO_EP_ATRIBUTES 0x00 |
| #define | AUDIO_EP_DELAY_UNIT 0x00 |
| #define | AUDIO_EP_LOCK_DELAY 0x0000 |
| #define | LANG_ID 0x00 |
| #define | DEVICE_STATUS USB_DEVICE_STATUS_BUS_POWERED |
| #define | USB_MN_LENGTH 5 |
| #define | USB_MANUFACTURER_NAME |
| #define | USB_PN_LENGTH 18 |
| #define | USB_PRODUCT_NAME |
| #define | USB_SN_LENGTH 0x05 |
| #define | USB_SERIAL_NUMBER |
| #define | AUDIO_CHANNEL_NAME |
| #define | LANGUAGE_ID 0x0409 |
This file contains the usb parameters that uniquely identify the application through descriptor tables.
Definition in file usb_descriptors.h.
| #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.bLength)) |
| #define Usb_get_conf_desc_length | ( | ) | (sizeof (usb_conf_desc)) |
| #define USB_SPECIFICATION 0x0200 |
Definition at line 65 of file usb_descriptors.h.
| #define DEVICE_CLASS 0 |
Definition at line 66 of file usb_descriptors.h.
| #define DEVICE_SUB_CLASS 0 |
Definition at line 67 of file usb_descriptors.h.
| #define DEVICE_PROTOCOL 0 |
Definition at line 68 of file usb_descriptors.h.
| #define EP_CONTROL_LENGTH 64 |
| #define VENDOR_ID VID_ATMEL |
Definition at line 70 of file usb_descriptors.h.
| #define PRODUCT_ID PID_MegaAUDIO_IN |
Definition at line 71 of file usb_descriptors.h.
| #define RELEASE_NUMBER 0x1000 |
Definition at line 72 of file usb_descriptors.h.
| #define MAN_INDEX 0x01 |
| #define PROD_INDEX 0x02 |
| #define SN_INDEX 0x03 |
| #define NB_CONFIGURATION 1 |
| #define NB_INTERFACE 2 |
Definition at line 84 of file usb_descriptors.h.
| #define CONF_NB 1 |
Definition at line 85 of file usb_descriptors.h.
| #define CONF_INDEX 0 |
Definition at line 86 of file usb_descriptors.h.
| #define CONF_ATTRIBUTES USB_CONFIG_BUSPOWERED |
Definition at line 87 of file usb_descriptors.h.
| #define MAX_POWER 50 |
Definition at line 88 of file usb_descriptors.h.
| #define AC_INTERFACE_NB 0 |
| #define AC_ALTERNATE 0 |
Definition at line 92 of file usb_descriptors.h.
| #define AC_NB_ENDPOINT 0 |
Definition at line 93 of file usb_descriptors.h.
| #define AC_INTERFACE_CLASS AUDIO_CLASS |
Definition at line 94 of file usb_descriptors.h.
| #define AC_INTERFACE_SUB_CLASS AUDIO_SUB_CLASS_CONTROL |
Definition at line 95 of file usb_descriptors.h.
| #define AC_INTERFACE_PROTOCOL NO_PROTOCOL |
Definition at line 96 of file usb_descriptors.h.
| #define AC_INTERFACE_INDEX 0 |
Definition at line 97 of file usb_descriptors.h.
| #define ENDPOINT_NB_1 (EP_AUDIO_IN | USB_ENDPOINT_IN) |
Definition at line 100 of file usb_descriptors.h.
| #define EP_ATTRIBUTES_1 0x01 |
Definition at line 101 of file usb_descriptors.h.
| #define EP_IN_LENGTH 16 |
Definition at line 102 of file usb_descriptors.h.
| #define EP_SIZE_1 EP_IN_LENGTH |
| #define EP_INTERVAL_1 0x01 |
Definition at line 104 of file usb_descriptors.h.
| #define NB_OF_STREAMING_INTERFACE 0x01 |
| #define INPUT_TERMINAL_ID 0x01 |
Definition at line 109 of file usb_descriptors.h.
| #define INPUT_TERMINAL_TYPE AUDIO_TE_TYPE_INPUT_MICROPHONE |
Definition at line 110 of file usb_descriptors.h.
| #define INPUT_TERMINAL_ASSOCIATION 0x00 |
Definition at line 111 of file usb_descriptors.h.
| #define INPUT_TERMINAL_NB_CHANNELS 0x01 |
Definition at line 112 of file usb_descriptors.h.
| #define INPUT_TERMINAL_CHANNEL_CONF AUDIO_CHANNEL_NO_POSITION |
Definition at line 113 of file usb_descriptors.h.
| #define INPUT_TERMINAL_CH_NAME_ID 0x00 |
Definition at line 114 of file usb_descriptors.h.
| #define FEATURE_UNIT_ID 0x02 |
| #define FEATURE_UNIT_SOURCE_ID INPUT_TERMINAL_ID |
Definition at line 117 of file usb_descriptors.h.
| #define FEATURE_UNIT_CTRL_CH_MASTER (AUDIO_FU_CONTROL_CS_MUTE|AUDIO_FU_CONTROL_CS_VOLUME) |
Definition at line 118 of file usb_descriptors.h.
| #define FEATURE_UNIT_CTRL_CH_1 0x00 |
Definition at line 119 of file usb_descriptors.h.
| #define OUTPUT_TERMINAL_ID 0x03 |
Definition at line 121 of file usb_descriptors.h.
| #define OUTPUT_TERMINAL_TYPE AUDIO_TE_TYPE_USB_STREAMING |
Definition at line 122 of file usb_descriptors.h.
| #define OUTPUT_TERMINAL_ASSOCIATION 0x00 |
Definition at line 123 of file usb_descriptors.h.
| #define OUTPUT_TERMINAL_SOURCE_ID FEATURE_UNIT_ID |
Definition at line 124 of file usb_descriptors.h.
| #define STD_AS_INTERFACE_NB 0x01 |
Definition at line 126 of file usb_descriptors.h.
| #define ALT0_AS_INTERFACE_INDEX 0x00 |
Definition at line 128 of file usb_descriptors.h.
| #define ALT0_AS_NB_ENDPOINT 0x00 |
Definition at line 129 of file usb_descriptors.h.
| #define ALT0_AS_INTERFACE_CLASS AUDIO_CLASS |
Definition at line 130 of file usb_descriptors.h.
| #define ALT0_AS_INTERFACE_SUB_CLASS AUDIO_SUB_CLASS_STREAMING |
Definition at line 131 of file usb_descriptors.h.
| #define ALT0_AS_INTERFACE_PROTOCOL NO_PROTOCOL |
Definition at line 132 of file usb_descriptors.h.
| #define ALT1_AS_INTERFACE_INDEX 0x01 |
Definition at line 134 of file usb_descriptors.h.
| #define ALT1_AS_NB_ENDPOINT 0x01 |
Definition at line 135 of file usb_descriptors.h.
| #define ALT1_AS_INTERFACE_CLASS AUDIO_CLASS |
Definition at line 136 of file usb_descriptors.h.
| #define ALT1_AS_INTERFACE_SUB_CLASS AUDIO_SUB_CLASS_STREAMING |
Definition at line 137 of file usb_descriptors.h.
| #define ALT1_AS_INTERFACE_PROTOCOL NO_PROTOCOL |
Definition at line 138 of file usb_descriptors.h.
| #define AS_TERMINAL_LINK 0x03 |
Definition at line 140 of file usb_descriptors.h.
| #define AS_DELAY 0x01 |
Definition at line 141 of file usb_descriptors.h.
| #define AS_FORMAT_TAG AUDIO_FORMAT_TI_PCM |
Definition at line 142 of file usb_descriptors.h.
| #define FORMAT_TYPE AUDIO_FORMAT_TYPE_I |
Definition at line 144 of file usb_descriptors.h.
| #define FORMAT_NB_CHANNELS 0x01 |
Definition at line 145 of file usb_descriptors.h.
| #define FORMAT_FRAME_SIZE 0x02 |
Definition at line 146 of file usb_descriptors.h.
| #define FORMAT_BIT_RESOLUTION 0x10 |
Definition at line 147 of file usb_descriptors.h.
| #define FORMAT_SAMPLE_FREQ_NB 0x01 |
Definition at line 148 of file usb_descriptors.h.
| #define FORMAT_LSBYTE_SAMPLE_FREQ 0x1F40 |
Definition at line 149 of file usb_descriptors.h.
| #define FORMAT_MSBYTE_SAMPLE_FREQ 0x00 |
Definition at line 150 of file usb_descriptors.h.
| #define AUDIO_EP_ATRIBUTES 0x00 |
Definition at line 153 of file usb_descriptors.h.
| #define AUDIO_EP_DELAY_UNIT 0x00 |
Definition at line 154 of file usb_descriptors.h.
| #define AUDIO_EP_LOCK_DELAY 0x0000 |
Definition at line 155 of file usb_descriptors.h.
| #define LANG_ID 0x00 |
| #define DEVICE_STATUS USB_DEVICE_STATUS_BUS_POWERED |
Definition at line 158 of file usb_descriptors.h.
| #define USB_MN_LENGTH 5 |
Definition at line 161 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 162 of file usb_descriptors.h.
| #define USB_PN_LENGTH 18 |
Definition at line 170 of file usb_descriptors.h.
| #define USB_PRODUCT_NAME |
Value:
{ Usb_unicode('A') \
,Usb_unicode('V') \
,Usb_unicode('R') \
,Usb_unicode(' ') \
,Usb_unicode('U') \
,Usb_unicode('S') \
,Usb_unicode('B') \
,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 171 of file usb_descriptors.h.
| #define USB_SN_LENGTH 0x05 |
Definition at line 192 of file usb_descriptors.h.
| #define USB_SERIAL_NUMBER |
Value:
{ Usb_unicode('0') \
,Usb_unicode('0') \
,Usb_unicode('0') \
,Usb_unicode('0') \
,Usb_unicode('0') \
}
Definition at line 193 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 201 of file usb_descriptors.h.
| #define LANGUAGE_ID 0x0409 |
Definition at line 209 of file usb_descriptors.h.
1.5.3