![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Audio Class Device Mode Configuration and State Structure. More...
#include "AudioClassDevice.h"
Data Fields | |
struct { | |
uint8_t StreamingInterfaceNumber | |
uint8_t DataINEndpointNumber | |
uint16_t DataINEndpointSize | |
uint8_t DataOUTEndpointNumber | |
uint16_t DataOUTEndpointSize | |
} | Config |
struct { | |
bool InterfaceEnabled | |
} | State |
Audio Class Device Mode Configuration and State Structure.
Class state structure. An instance of this structure should be made for each Audio interface 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.
Definition at line 71 of file AudioClassDevice.h.
struct { ... } 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 DataINEndpointNumber |
Endpoint number of the incoming Audio Streaming data, if available (zero if unused).
Definition at line 79 of file AudioClassDevice.h.
uint16_t DataINEndpointSize |
Size in bytes of the incoming Audio Streaming data endpoint, if available (zero if unused).
Definition at line 82 of file AudioClassDevice.h.
uint8_t DataOUTEndpointNumber |
Endpoint number of the outgoing Audio Streaming data, if available (zero if unused).
Definition at line 86 of file AudioClassDevice.h.
uint16_t DataOUTEndpointSize |
Size in bytes of the outgoing Audio Streaming data endpoint, if available (zero if unused).
Definition at line 89 of file AudioClassDevice.h.
bool InterfaceEnabled |
Set and cleared by the class driver to indicate if the host has enabled the streaming endpoints of the Audio Streaming interface.
Definition at line 97 of file AudioClassDevice.h.
struct { ... } State |
State data for the USB class interface within the device. All elements in this section are reset to their defaults when the interface is enumerated.
uint8_t StreamingInterfaceNumber |
Index of the Audio Streaming interface within the device this structure controls.
Definition at line 75 of file AudioClassDevice.h.