USBD_AUDIO_CfgDesc variable
Syntax
static uint8_t USBD_AUDIO_CfgDesc[USB_AUDIO_CONFIG_DESC_SIZ] __ALIGN_END =
{
0x09,
USB_DESC_TYPE_CONFIGURATION,
LOBYTE(USB_AUDIO_CONFIG_DESC_SIZ),
HIBYTE(USB_AUDIO_CONFIG_DESC_SIZ),
0x02,
0x01,
0x00,
#if (USBD_SELF_POWERED == 1U)
0xC0,
#else
0x80,
#endif
USBD_MAX_POWER,
AUDIO_INTERFACE_DESC_SIZE,
USB_DESC_TYPE_INTERFACE,
0x00,
0x00,
0x00,
USB_DEVICE_CLASS_AUDIO,
AUDIO_SUBCLASS_AUDIOCONTROL,
AUDIO_PROTOCOL_UNDEFINED,
0x00,
AUDIO_INTERFACE_DESC_SIZE,
AUDIO_INTERFACE_DESCRIPTOR_TYPE,
AUDIO_CONTROL_HEADER,
0x00,
0x01,
0x27,
0x00,
0x01,
0x01,
AUDIO_INPUT_TERMINAL_DESC_SIZE,
AUDIO_INTERFACE_DESCRIPTOR_TYPE,
AUDIO_CONTROL_INPUT_TERMINAL,
0x01,
0x01,
0x01,
0x00,
0x01,
0x00,
0x00,
0x00,
0x00,
0x09,
AUDIO_INTERFACE_DESCRIPTOR_TYPE,
AUDIO_CONTROL_FEATURE_UNIT,
AUDIO_OUT_STREAMING_CTRL,
0x01,
0x01,
AUDIO_CONTROL_MUTE,
0,
0x00,
0x09,
AUDIO_INTERFACE_DESCRIPTOR_TYPE,
AUDIO_CONTROL_OUTPUT_TERMINAL,
0x03,
0x01,
0x03,
0x00,
0x02,
0x00,
AUDIO_INTERFACE_DESC_SIZE,
USB_DESC_TYPE_INTERFACE,
0x01,
0x00,
0x00,
USB_DEVICE_CLASS_AUDIO,
AUDIO_SUBCLASS_AUDIOSTREAMING,
AUDIO_PROTOCOL_UNDEFINED,
0x00,
AUDIO_INTERFACE_DESC_SIZE,
USB_DESC_TYPE_INTERFACE,
0x01,
0x01,
0x01,
USB_DEVICE_CLASS_AUDIO,
AUDIO_SUBCLASS_AUDIOSTREAMING,
AUDIO_PROTOCOL_UNDEFINED,
0x00,
AUDIO_STREAMING_INTERFACE_DESC_SIZE,
AUDIO_INTERFACE_DESCRIPTOR_TYPE,
AUDIO_STREAMING_GENERAL,
0x01,
0x01,
0x01,
0x00,
0x0B,
AUDIO_INTERFACE_DESCRIPTOR_TYPE,
AUDIO_STREAMING_FORMAT_TYPE,
AUDIO_FORMAT_TYPE_I,
0x02,
0x02,
16,
0x01,
AUDIO_SAMPLE_FREQ(USBD_AUDIO_FREQ),
AUDIO_STANDARD_ENDPOINT_DESC_SIZE,
USB_DESC_TYPE_ENDPOINT,
AUDIO_OUT_EP,
USBD_EP_TYPE_ISOC,
AUDIO_PACKET_SZE(USBD_AUDIO_FREQ),
AUDIO_FS_BINTERVAL,
0x00,
0x00,
AUDIO_STREAMING_ENDPOINT_DESC_SIZE,
AUDIO_ENDPOINT_DESCRIPTOR_TYPE,
AUDIO_ENDPOINT_GENERAL,
0x00,
0x00,
0x00,
0x00,
};