LUFA Library  120219
USB_Audio_StdDescriptor_Format_t Struct Reference

Audio class-specific Format Descriptor (USB-IF naming conventions). More...

#include <AudioClassCommon.h>

Data Fields

uint8_t bLength
uint8_t bDescriptorType
uint8_t bDescriptorSubtype
uint8_t bFormatType
uint8_t bNrChannels
uint8_t bSubFrameSize
uint8_t bBitResolution
uint8_t bSampleFrequencyType

Detailed Description

Type define for an Audio class-specific audio format descriptor. This is used to give the host full details about the number of channels, the sample resolution, acceptable sample frequencies and encoding method used in the device's audio streams. See the USB Audio specification for more details.

This descriptor must be followed by one or more 24-bit integer elements containing the continuous or discrete sample frequencies.
See also:
USB_Audio_Descriptor_Format_t for the version of this type with non-standard LUFA specific element names.
Regardless of CPU architecture, these values should be stored as little endian.

Field Documentation

Bits of resolution of each channel's samples in the stream.

Sub type value used to distinguish between audio class-specific descriptors, a value from the Audio_CSInterface_AS_SubTypes_t enum.

Sub type value used to distinguish between audio class-specific descriptors, must be AUDIO_DSUBTYPE_CSInterface_FormatType.

Format of the audio stream, see Audio Device Formats specification.

Size of the descriptor, in bytes.

Total number of discrete channels in the stream.

Total number of sample frequencies supported by the device. When zero, this must be followed by the lower and upper continuous sampling frequencies supported by the device; otherwise, this must be followed by the given number of discrete sampling frequencies supported.

Size in bytes of each channel's sample data in the stream.

The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines