| NUC472_NUC442_BSP V3.04.000 The Board Support Package for NUC472/NUC442

Data Structures | Macros | Typedefs | Functions
usbh_uac.h File Reference
`#include "usbh_core.h"`
Include dependency graph for usbh_uac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | uac_dev_t

## Macros
#define | CONFIG_AU_MAX_DEV
#define | MAX_CFG_DESC_SIZE
#define | MAX_FEATURE_UNIT
#define | ISO_IN_URB_CNT
#define | ISO_OUT_URB_CNT
#define | AU_IN_MAX_PKTSZ
#define | AU_OUT_MAX_PKTSZ
#define | UAC_REQ_TIMEOUT
#define | UAC_SPEAKER
#define | UAC_MICROPHONE
#define | UAC_RET_OK
#define | UAC_RET_DEV_NOT_FOUND
#define | UAC_RET_IO_ERR
#define | UAC_RET_INVALID
#define | UAC_RET_OUT_OF_MEMORY
#define | UAC_RET_DRV_NOT_SUPPORTED
#define | UAC_RET_DEV_NOT_SUPPORTED
#define | UAC_SET_CUR
#define | UAC_GET_CUR
#define | UAC_SET_MIN
#define | UAC_GET_MIN
#define | UAC_SET_MAX
#define | UAC_GET_MAX
#define | UAC_SET_RES
#define | UAC_GET_RES
#define | UAC_GET_STAT
#define | UAC_CH_MASTER
#define | UAC_CH_LEFT_FRONT
#define | UAC_CH_RIGHT_FRONT
#define | UAC_CH_CENTER_FRONT
#define | UAC_CH_LOW_FREQ_EN
#define | UAC_CH_LEFT_SRN
#define | UAC_CH_RIGHT_SRN
#define | UAC_CH_LEFT_OF_CENTER
#define | UAC_CH_RIGHT_OF_CENTER
#define | UAC_CH_SURROUND
#define | UAC_CH_SIDE_LEFT
#define | UAC_CH_SIDE_RIGHT
#define | UAC_CH_TOP

## Typedefs
typedef int() | UAC_CB_FUNC(struct uac_dev_t *dev, uint8_t *data, int len)
typedef struct uac_dev_t | UAC_DEV_T

## Functions
void | UAC_Init (void)
| Initialize this USB Audio Class driver. More...
UAC_DEV_T * | UAC_GetDeviceList (void)
| Get a list of currently connected USB Audio Class devices. More...
int32_t | UAC_GetChannelNumber (UAC_DEV_T *audev, uint8_t target)
| Obtain Audio Class device's channel number. More...
int32_t | UAC_GetBitResolution (UAC_DEV_T *audev, uint8_t target, uint8_t *byte_cnt)
| Obtain Audio Class device subframe bit resolution.. More...
int32_t | UAC_GetSamplingRate (UAC_DEV_T *audev, uint8_t target, uint32_t *srate_list, int max_cnt, uint8_t *type)
| Get a list of sampling rate frequences supported by the UAC device. More...
int32_t | UAC_MuteControl (UAC_DEV_T *audev, uint8_t target, uint8_t req, uint16_t chn, uint8_t *mute)
| Control Audio Class device mute on/off. More...
int32_t | UAC_VolumeControl (UAC_DEV_T *audev, uint8_t target, uint8_t req, uint16_t chn, uint16_t *volume)
| Audio Class device volume control. More...
int32_t | UAC_AutoGainControl (UAC_DEV_T *audev, uint8_t target, uint8_t req, uint16_t chn, uint8_t *mute)
| Audio Class device automatic gain control. More...
int32_t | UAC_SamplingRateControl (UAC_DEV_T *audev, uint8_t target, uint8_t req, uint32_t *srate)
| Set sampling rate frequency. More...
int32_t | UAC_InstallIsoInCbFun (UAC_DEV_T *audev, uint8_t *au_in_buff, int bufsiz, UAC_CB_FUNC *func)
| Install isochronous-in (microphone) callback function. Received audio data from UAC device will be delivered to user application by this callback function. More...
int32_t | UAC_StartIsoInPipe (UAC_DEV_T *audev)
| Start to receive audio data from UAC device via isochronous in pipe. More...
int32_t | UAC_StopIsoInPipe (UAC_DEV_T *audev)
| Stop UAC device audio in data stream. More...
int32_t | UAC_InstallIsoOutCbFun (UAC_DEV_T *audev, UAC_CB_FUNC *func)
| Install isochronous-out (speaker) callback function. The UAC driver will call the callback function to request one audio out packet from user application. UAC driver will then send this packet to UAC device via isochronous out pipe. More...
int32_t | UAC_StartIsoOutPipe (UAC_DEV_T *audev)
| Start to send audio data to UAC device via isochronous out pipe. More...
int32_t | UAC_StopIsoOutPipe (UAC_DEV_T *audev)
| Stop UAC device audio out data stream. More...