![]() |
NUC472_NUC442_BSP V3.03.004
The Board Support Package for NUC472/NUC442
|
#include <stdio.h>
#include <string.h>
#include "NUC472_442.h"
#include "usbh_core.h"
#include "usbh_uac.h"
#include "uac.h"
Go to the source code of this file.
Functions | |
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_SamplingRateControl (UAC_DEV_T *audev, uint8_t target, uint8_t req, uint32_t *srate) |
Set sampling rate frequency. 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_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... | |