23 #ifndef __USBHAUDIO_H__ 24 #define __USBHAUDIO_H__ 57 #define USBH_AUDIO_EVENT_OPEN (USBH_AUDIO_EVENT_BASE + 0) 66 #define USBH_AUDIO_EVENT_CLOSE (USBH_AUDIO_EVENT_BASE + 1) 75 #define USBH_AUDIO_FORMAT_IN 0x00000001 76 #define USBH_AUDIO_FORMAT_OUT 0x00000000 95 uint32_t ui32MsgParam,
107 void *pvBuffer, uint32_t ui32Size,
111 uint32_t ui32SampleRate,
112 uint32_t ui32Bits, uint32_t ui32Channels,
115 uint32_t ui32SampleRate,
116 uint32_t ui32Bits, uint32_t ui32Channels,
120 void *pvBuffer, uint32_t ui32Size,
124 uint32_t ui32Interface,
125 uint32_t ui32Channel);
128 uint32_t ui32Interface, uint32_t ui32Channel,
132 uint32_t ui32Interface,
133 uint32_t ui32Channel);
136 uint32_t ui32Interface,
137 uint32_t ui32Channel);
140 uint32_t ui32Interface,
141 uint32_t ui32Channel);
uint32_t USBHostAudioFormatGet(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32SampleRate, uint32_t ui32Bits, uint32_t ui32Channels, uint32_t ui32Flags)
Definition: usbhaudio.c:1246
void(* tUSBHostAudioCallback)(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usbhaudio.h:93
uint32_t USBHostAudioVolumeGet(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32Interface, uint32_t ui32Channel)
Definition: usbhaudio.c:1047
uint32_t USBHostAudioVolumeMinGet(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32Interface, uint32_t ui32Channel)
Definition: usbhaudio.c:1111
uint32_t USBHostAudioFormatSet(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32SampleRate, uint32_t ui32Bits, uint32_t ui32Channels, uint32_t ui32Flags)
Definition: usbhaudio.c:1290
struct tUSBHostAudioInstance tUSBHostAudioInstance
Definition: usbhaudio.h:86
uint32_t USBHostAudioVolumeMaxGet(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32Interface, uint32_t ui32Channel)
Definition: usbhaudio.c:1079
uint32_t USBHostAudioLPMStatus(tUSBHostAudioInstance *psAudioInstance)
Definition: usbhaudio.c:1540
int32_t USBHostAudioPlay(tUSBHostAudioInstance *psAudioInstance, void *pvBuffer, uint32_t ui32Size, tUSBHostAudioCallback pfnCallback)
Definition: usbhaudio.c:1363
void USBHostAudioVolumeSet(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32Interface, uint32_t ui32Channel, uint32_t ui32Value)
Definition: usbhaudio.c:1176
int32_t USBHostAudioRecord(tUSBHostAudioInstance *psAudioInstance, void *pvBuffer, uint32_t ui32Size, tUSBHostAudioCallback pfnCallback)
Definition: usbhaudio.c:1439
uint32_t USBHostAudioVolumeResGet(tUSBHostAudioInstance *psAudioInstance, uint32_t ui32Interface, uint32_t ui32Channel)
Definition: usbhaudio.c:1143
uint32_t USBHostAudioLPMSleep(tUSBHostAudioInstance *psAudioInstance)
Definition: usbhaudio.c:1512
void USBHostAudioClose(tUSBHostAudioInstance *psAudioInstance)
Definition: usbhaudio.c:946
tUSBHostAudioInstance * USBHostAudioOpen(uint32_t ui32Index, tUSBHostAudioCallback pfnCallback)
Definition: usbhaudio.c:907