18#ifndef __VSF_USBD_UAC_H__
19#define __VSF_USBD_UAC_H__
25#if VSF_USE_USB_DEVICE == ENABLED && VSF_USBD_USE_UAC == ENABLED
27#include "../../../common/class/UAC/vsf_usb_UAC.h"
30#if defined(__VSF_USBD_UAC_CLASS_IMPLEMENT)
31# undef __VSF_USBD_UAC_CLASS_IMPLEMENT
32# define __VSF_CLASS_IMPLEMENT__
42#if VSF_USE_AUDIO != ENABLED
43# error "VSF_USE_AUDIO MUST be enabled to use uac"
46#ifndef VSF_USBD_UAC_WORKAROUND_CONTROL_OVERFLOW
47# define VSF_USBD_UAC_WORKAROUND_CONTROL_OVERFLOW ENABLED
50#ifndef VSF_USBD_UAC_CFG_UAC1_EN
51# define VSF_USBD_UAC_CFG_UAC1_EN ENABLED
54#ifndef VSF_USBD_UAC_CFG_UAC2_EN
55# define VSF_USBD_UAC_CFG_UAC2_EN ENABLED
146#if VSF_USBD_UAC_CFG_TRACE_EN == ENABLED
149#if VSF_USBD_UAC_WORKAROUND_CONTROL_OVERFLOW == ENABLED
152#if (VSF_USBD_UAC_CFG_UAC1_EN == ENABLED) && (VSF_USBD_UAC_CFG_UAC2_EN == ENABLED)
168#if VSF_USBD_UAC_CFG_TRACE_EN == ENABLED
Definition vsf_usbd.h:402
Definition vsf_usbd_UAC.h:135
Definition vsf_usbd_UAC.h:159
Definition vsf_simple_stream.h:254
signed short int16_t
Definition lvgl.h:42
unsigned short uint16_t
Definition lvgl.h:41
unsigned int uint32_t
Definition lvgl.h:43
signed int int32_t
Definition lvgl.h:44
unsigned char uint8_t
Definition lvgl.h:40
signed char int8_t
Definition lvgl.h:38
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_usbd_UAC.h:103
void(* on_set)(vk_usbd_uac_control_t *control)
Definition vsf_usbd_UAC.h:108
uint16_t size
Definition vsf_usbd_UAC.h:106
uint8_t channel
Definition vsf_usbd_UAC.h:105
uint8_t selector
Definition vsf_usbd_UAC.h:104
const vk_usbd_uac2_range_t * range
Definition vsf_usbd_UAC.h:110
Definition vsf_usbd_UAC.h:76
int8_t bMAX
Definition vsf_usbd_UAC.h:78
int8_t bMIN
Definition vsf_usbd_UAC.h:77
int8_t bRES
Definition vsf_usbd_UAC.h:79
Definition vsf_usbd_UAC.h:82
int16_t wMAX
Definition vsf_usbd_UAC.h:84
int16_t wRES
Definition vsf_usbd_UAC.h:85
int16_t wMIN
Definition vsf_usbd_UAC.h:83
Definition vsf_usbd_UAC.h:88
int32_t dMIN
Definition vsf_usbd_UAC.h:89
int32_t dRES
Definition vsf_usbd_UAC.h:91
int32_t dMAX
Definition vsf_usbd_UAC.h:90
Definition vsf_usbd_UAC.h:94
vk_usbd_uac2_lay2_t lay2
Definition vsf_usbd_UAC.h:98
vk_usbd_uac2_lay3_t lay3
Definition vsf_usbd_UAC.h:99
uint16_t number
Definition vsf_usbd_UAC.h:95
union vk_usbd_uac2_range_t::@202 attributes[0]
vk_usbd_uac2_lay1_t lay1
Definition vsf_usbd_UAC.h:97
Definition vsf_usbd_UAC.h:63
uint8_t channel
Definition vsf_usbd_UAC.h:65
vk_av_control_value_t min
Definition vsf_usbd_UAC.h:70
uint8_t selector
Definition vsf_usbd_UAC.h:64
vk_av_control_value_t max
Definition vsf_usbd_UAC.h:71
uint16_t size
Definition vsf_usbd_UAC.h:66
vk_av_control_value_t res
Definition vsf_usbd_UAC.h:72
void(* on_set)(vk_usbd_uac_control_t *control)
Definition vsf_usbd_UAC.h:68
Definition vsf_usbd_UAC.h:115
const vk_usbd_uac2_control_info_t * info2
Definition vsf_usbd_UAC.h:118
const vk_usbd_uac_control_info_t * info
Definition vsf_usbd_UAC.h:117
vk_av_control_value_t cur
Definition vsf_usbd_UAC.h:120
Definition vsf_usbd_UAC.h:123
uint8_t id
Definition vsf_usbd_UAC.h:124
vk_usbd_uac_control_t * control
Definition vsf_usbd_UAC.h:126
uint8_t control_num
Definition vsf_usbd_UAC.h:125
struct vk_romfs_header_t VSF_CAL_PACKED
vk_usb_uac_version_t
Definition vsf_usbd_UAC.h:129
@ VK_USB_UAC1
Definition vsf_usbd_UAC.h:130
@ VK_USB_UAC2
Definition vsf_usbd_UAC.h:131
const vk_usbd_class_op_t vk_usbd_uac_stream_class
const vk_usbd_class_op_t vk_usbd_uac_control_class
void vk_usbd_uac_connect_stream(vk_usbd_uac_as_t *uac_as, vsf_stream_t *stream)
void vk_usbd_uac_disconnect_stream(vk_usbd_uac_as_t *uac_as)