![]() |
M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
|
#include <stdio.h>
#include <string.h>
#include "NuMicro.h"
#include "usb.h"
#include "usbh_lib.h"
#include "usbh_uac.h"
#include "uac.h"
Go to the source code of this file.
Functions | |
int | usbh_uac_get_channel_number (UAC_DEV_T *uac, uint8_t target) |
Obtain Audio Class device's channel number. More... | |
int | usbh_uac_get_bit_resolution (UAC_DEV_T *uac, uint8_t target, uint8_t *byte_cnt) |
Obtain Audio Class device subframe bit resolution.. More... | |
int | usbh_uac_get_sampling_rate (UAC_DEV_T *uac, uint8_t target, uint32_t *srate_list, int max_cnt, uint8_t *type) |
Get a list of sampling rate frequencies supported by the UAC device. More... | |
int | usbh_uac_sampling_rate_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint32_t *srate) |
Set sampling rate frequency. More... | |
int | usbh_uac_mute_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint16_t chn, uint8_t *mute) |
Control Audio Class device mute on/off. More... | |
int | usbh_uac_vol_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint16_t chn, uint16_t *volume) |
Audio Class device volume control. More... | |
int | usbh_uac_auto_gain_control (UAC_DEV_T *uac, uint8_t target, uint8_t req, uint16_t chn, uint8_t *bAGC) |
Audio Class device automatic gain control. More... | |
int | usbh_uac_start_audio_in (UAC_DEV_T *uac, UAC_CB_FUNC *func) |
Start to receive audio data from UAC device. (Microphone) More... | |
int | usbh_uac_stop_audio_in (UAC_DEV_T *uac) |
Stop UAC device audio in data stream. More... | |
int | usbh_uac_start_audio_out (UAC_DEV_T *uac, UAC_CB_FUNC *func) |
Start to transmit audio data to UAC device. (Speaker) More... | |
int | usbh_uac_stop_audio_out (UAC_DEV_T *uac) |
Stop UAC device audio out data stream. More... | |
int | usbh_uac_open (UAC_DEV_T *uac) |
Open an connected UAC device. More... | |