24 #ifndef __USBDAUDIO_H__ 25 #define __USBDAUDIO_H__ 172 #define AUDIODESCRIPTOR_SIZE (8) 179 #define CONTROLINTERFACE_SIZE (52) 186 #define STREAMINTERFACE_SIZE (52) 196 #define COMPOSITE_DAUDIO_SIZE (AUDIODESCRIPTOR_SIZE + \ 197 CONTROLINTERFACE_SIZE + STREAMINTERFACE_SIZE) 220 const char pcVendor[8];
225 const char pcProduct[16];
230 const char pcVersion[4];
306 #define USBD_AUDIO_EVENT_IDLE (USBD_AUDIO_EVENT_BASE + 0) 314 #define USBD_AUDIO_EVENT_ACTIVE (USBD_AUDIO_EVENT_BASE + 1) 326 #define USBD_AUDIO_EVENT_DATAOUT (USBD_AUDIO_EVENT_BASE + 2) 338 #define USBD_AUDIO_EVENT_VOLUME (USBD_AUDIO_EVENT_BASE + 4) 347 #define USBD_AUDIO_EVENT_MUTE (USBD_AUDIO_EVENT_BASE + 5) int32_t USBAudioBufferOut(void *pvAudioDevice, void *pvBuffer, uint32_t ui32Size, tUSBAudioBufferCallback pfnCallback)
Definition: usbdaudio.c:1459
void * pvData
Definition: usbdaudio.h:91
const uint16_t ui16MaxPowermA
The maximum power consumption of the device, expressed in mA.
Definition: usbdaudio.h:235
uint8_t ui8Request
Definition: usbdaudio.h:118
Definition: usbdaudio.h:205
uint8_t ui8InterfaceControl
Definition: usbdaudio.h:153
Definition: usbdevice.h:135
int16_t i16VolumeMin
Definition: usbdaudio.h:79
tUSBDMAInstance * psDMAInstance
Definition: usbdaudio.h:163
void * USBDAudioCompositeInit(uint32_t ui32Index, tUSBDAudioDevice *psAudioDevice, tCompositeEntry *psCompEntry)
Definition: usbdaudio.c:994
const int16_t i16VolumeStep
The minimum volume step expressed as an 8.8 signed value.
Definition: usbdaudio.h:286
const tUSBCallback pfnCallback
Definition: usbdaudio.h:249
uint8_t ui8OUTDMA
Definition: usbdaudio.h:148
tUSBAudioBufferCallback pfnCallback
Definition: usbdaudio.h:106
uint8_t ui8Mute
Definition: usbdaudio.h:133
const uint8_t *const * ppui8StringDescriptors
Definition: usbdaudio.h:264
uint16_t ui16RequestType
Definition: usbdaudio.h:113
uint8_t ui8InterfaceAudio
Definition: usbdaudio.h:158
Definition: usbdevice.h:66
uint32_t ui32NumBytes
Definition: usbdaudio.h:101
uint32_t(* tUSBCallback)(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usblib.h:1220
int16_t i16Volume
Definition: usbdaudio.h:128
const uint8_t ui8PwrAttributes
Definition: usbdaudio.h:242
uint16_t ui16Update
Definition: usbdaudio.h:123
void(* tUSBAudioBufferCallback)(void *pvBuffer, uint32_t ui32Param, uint32_t ui32Event)
Definition: usbdaudio.h:45
uint32_t ui32Size
Definition: usbdaudio.h:96
const int16_t i16VolumeMax
The maximum volume expressed as an 8.8 signed value.
Definition: usbdaudio.h:276
void * USBDAudioInit(uint32_t ui32Index, tUSBDAudioDevice *psAudioDevice)
Definition: usbdaudio.c:902
const uint16_t ui16VID
The vendor ID that this device is to present in the device descriptor.
Definition: usbdaudio.h:210
Definition: usblibpriv.h:177
int16_t i16VolumeStep
Definition: usbdaudio.h:84
uint8_t ui8OUTEndpoint
Definition: usbdaudio.h:143
Definition: usbdaudio.h:59
int16_t i16VolumeMax
Definition: usbdaudio.h:74
tDeviceInfo sDevInfo
Definition: usbdaudio.h:69
const uint16_t ui16PID
The product ID that this device is to present in the device descriptor.
Definition: usbdaudio.h:215
tAudioInstance sPrivateData
The private instance data for the audio device.
Definition: usbdaudio.h:291
const uint32_t ui32NumStringDescriptors
Definition: usbdaudio.h:271
void USBDAudioTerm(void *pvAudioDevice)
Definition: usbdaudio.c:1107
uint32_t ui32USBBase
Definition: usbdaudio.h:64
uint32_t ui32SampleRate
Definition: usbdaudio.h:138
const int16_t i16VolumeMin
The minimum volume expressed as an 8.8 signed value.
Definition: usbdaudio.h:281