Audio Class Host Mode Configuration and State Structure. More...
#include <AudioClassHost.h>
Data Fields | |
struct { | |
USB_Pipe_Table_t DataINPipe | |
USB_Pipe_Table_t DataOUTPipe | |
} | Config |
struct { | |
uint8_t ControlInterfaceNumber | |
uint8_t EnabledStreamingAltIndex | |
bool IsActive | |
uint8_t StreamingInterfaceNumber | |
} | State |
Class state structure. An instance of this structure should be made within the user application, and passed to each of the Audio class driver functions as the AudioInterfaceInfo
parameter. This stores each Audio interface's configuration and state information.
struct { ... } USB_ClassInfo_Audio_Host_t::Config |
Config data for the USB class interface within the device. All elements in this section must be set or the interface will fail to enumerate and operate correctly.
uint8_t USB_ClassInfo_Audio_Host_t::ControlInterfaceNumber |
Interface index of the Audio Control interface within the attached device.
USB_Pipe_Table_t USB_ClassInfo_Audio_Host_t::DataINPipe |
Data IN Pipe configuration table.
USB_Pipe_Table_t USB_ClassInfo_Audio_Host_t::DataOUTPipe |
Data OUT Pipe configuration table.
uint8_t USB_ClassInfo_Audio_Host_t::EnabledStreamingAltIndex |
Alternative setting index of the Audio Streaming interface when the stream is enabled.
bool USB_ClassInfo_Audio_Host_t::IsActive |
Indicates if the current interface instance is connected to an attached device, valid after Audio_Host_ConfigurePipes() is called and the Host state machine is in the Configured state.
struct { ... } USB_ClassInfo_Audio_Host_t::State |
State data for the USB class interface within the device. All elements in this section may be set to initial values, but may also be ignored to default to sane values when the interface is enumerated.
uint8_t USB_ClassInfo_Audio_Host_t::StreamingInterfaceNumber |
Interface index of the Audio Streaming interface within the attached device.