Common definitions and declarations for the library USB Audio Class driver. More...
#include "../../USB.h"
#include <string.h>
Data Structures | |
struct | USB_Audio_Interface_AC_t |
Audio class-specific Interface Descriptor. More... | |
struct | USB_Audio_FeatureUnit_t |
Audio class-specific Feature Unit Descriptor. More... | |
struct | USB_Audio_InputTerminal_t |
Audio class-specific Input Terminal Descriptor. More... | |
struct | USB_Audio_OutputTerminal_t |
Audio class-specific Output Terminal Descriptor. More... | |
struct | USB_Audio_Interface_AS_t |
Audio class-specific Streaming Audio Interface Descriptor. More... | |
struct | USB_Audio_SampleFreq_t |
24-Bit Audio Frequency Structure. More... | |
struct | USB_Audio_Format_t |
Audio class-specific Format Descriptor. More... | |
struct | USB_Audio_StreamEndpoint_Std_t |
Audio class-specific Streaming Endpoint Descriptor. More... | |
struct | USB_Audio_StreamEndpoint_Spc_t |
Audio class-specific Extended Endpoint Descriptor. More... | |
Defines | |
#define | AUDIO_TOTAL_SAMPLE_RATES 1 |
#define | DTYPE_AudioInterface 0x24 |
#define | DTYPE_AudioEndpoint 0x25 |
#define | DSUBTYPE_Header 0x01 |
#define | DSUBTYPE_InputTerminal 0x02 |
#define | DSUBTYPE_OutputTerminal 0x03 |
#define | DSUBTYPE_FeatureUnit 0x06 |
#define | DSUBTYPE_General 0x01 |
#define | DSUBTYPE_Format 0x02 |
#define | CHANNEL_LEFT_FRONT (1 << 0) |
#define | CHANNEL_RIGHT_FRONT (1 << 1) |
#define | CHANNEL_CENTER_FRONT (1 << 2) |
#define | CHANNEL_LOW_FREQ_ENHANCE (1 << 3) |
#define | CHANNEL_LEFT_SURROUND (1 << 4) |
#define | CHANNEL_RIGHT_SURROUND (1 << 5) |
#define | CHANNEL_LEFT_OF_CENTER (1 << 6) |
#define | CHANNEL_RIGHT_OF_CENTER (1 << 7) |
#define | CHANNEL_SURROUND (1 << 8) |
#define | CHANNEL_SIDE_LEFT (1 << 9) |
#define | CHANNEL_SIDE_RIGHT (1 << 10) |
#define | CHANNEL_TOP (1 << 11) |
#define | FEATURE_MUTE (1 << 0) |
#define | FEATURE_VOLUME (1 << 1) |
#define | FEATURE_BASS (1 << 2) |
#define | FEATURE_MID (1 << 3) |
#define | FEATURE_TREBLE (1 << 4) |
#define | FEATURE_GRAPHIC_EQUALIZER (1 << 5) |
#define | FEATURE_AUTOMATIC_GAIN (1 << 6) |
#define | FEATURE_DELAY (1 << 7) |
#define | FEATURE_BASS_BOOST (1 << 8) |
#define | FEATURE_BASS_LOUDNESS (1 << 9) |
#define | TERMINAL_UNDEFINED 0x0100 |
#define | TERMINAL_STREAMING 0x0101 |
#define | TERMINAL_VENDOR 0x01FF |
#define | TERMINAL_IN_UNDEFINED 0x0200 |
#define | TERMINAL_IN_MIC 0x0201 |
#define | TERMINAL_IN_DESKTOP_MIC 0x0202 |
#define | TERMINAL_IN_PERSONAL_MIC 0x0203 |
#define | TERMINAL_IN_OMNIDIR_MIC 0x0204 |
#define | TERMINAL_IN_MIC_ARRAY 0x0205 |
#define | TERMINAL_IN_PROCESSING_MIC 0x0206 |
#define | TERMINAL_IN_OUT_UNDEFINED 0x0300 |
#define | TERMINAL_OUT_SPEAKER 0x0301 |
#define | TERMINAL_OUT_HEADPHONES 0x0302 |
#define | TERMINAL_OUT_HEAD_MOUNTED 0x0303 |
#define | TERMINAL_OUT_DESKTOP 0x0304 |
#define | TERMINAL_OUT_ROOM 0x0305 |
#define | TERMINAL_OUT_COMMUNICATION 0x0306 |
#define | TERMINAL_OUT_LOWFREQ 0x0307 |
#define | AUDIO_SAMPLE_FREQ(freq) {LowWord: ((uint32_t)freq & 0x00FFFF), HighByte: (((uint32_t)freq >> 16) & 0x0000FF)} |
#define | EP_ACCEPTS_ONLY_FULL_PACKETS (1 << 7) |
#define | EP_ACCEPTS_SMALL_PACKETS (0 << 7) |
Common definitions and declarations for the library USB Audio Class driver.