CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
es8311.h
浏览该文件的文档.
1 
12 #ifndef __ES8311_H
13 #define __ES8311_H
14 
15 #include <stdint.h>
16 #include "ci130x_system.h"
17 
18 
25 #ifdef __cplusplus
26  extern "C" {
27 #endif
28 
39 typedef enum
40 {
57 }es8311_alc_maxgain_t;//ALC最大增益调节上限
58 
59 
64 typedef enum
65 {
82 }es8311_alc_mingain_t;//ALC最小增益调节下限
83 
84 
89 typedef enum
90 {
108 }es8311_alc_level_t;//ALC调节声音的目标幅度
109 
110 
111 typedef enum
112 {
125 
126 
127 typedef enum
128 {
138 
139 
144 typedef enum
145 {
147  ES8311_ALC_OFF = (0<<7),
149  ES8311_ALC_ON = (1<<7),
151 
152 
157 typedef struct
158 {
160  float max_gain;
166 
167 
168 typedef enum
169 {
187 
188 
189 typedef enum
190 {
208 
209 
210 typedef enum
211 {
221 
222 
223 typedef enum
224 {
228 
229 
230 typedef struct
231 {
237 
238 void es8311_init(void);
242 int8_t es8311_dac_vol_set(int8_t vol);
243 void es8311_i2c_init(void);
244 void es8311_dac_off(void);
245 void es8311_dac_on(void);
246 
247 #ifdef __cplusplus
248 }
249 #endif
250 
255 #endif
256 /***************** (C) COPYRIGHT Chipintelli Technology Co., Ltd. *****END OF FILE****/
257 
Definition: es8311.h:191
Definition: es8311.h:184
Definition: es8311.h:204
es8311_alc_level_t alc_min_level
8311 ALC 目标幅值设置
Definition: es8311.h:164
Definition: es8311.h:118
es8311_alc_level_t
8311 ALC目标幅值(dB为单位)
Definition: es8311.h:89
Definition: es8311.h:99
es8311_adc_gain_scale_up_t
Definition: es8311.h:127
es8311_alc_maxgain_t
8311 ALC调节上限
Definition: es8311.h:39
Definition: es8311.h:201
Definition: es8311.h:176
es8311_alc_mingain_t
8311 ALC调节下限
Definition: es8311.h:64
Definition: es8311.h:178
8311 ALC调节增益下限为30dB
Definition: es8311.h:81
Definition: es8311.h:119
Definition: es8311.h:106
Definition: es8311.h:216
8311 ALC 只开启右通道
Definition: es8311.h:149
Definition: es8311.h:95
Definition: es8311.h:199
int8_t es8311_auto_mute_set(es8311_auto_mute_config_t *str)
Definition: es8311.c:199
Definition: es8311.h:174
8311 ALC调节增益下限为18dB
Definition: es8311.h:77
Definition: es8311.h:185
Definition: es8311.h:179
Definition: es8311.h:97
Definition: es8311.h:212
es8311_auto_mute_en_t auto_mute_en
Definition: es8311.h:232
Definition: es8311.h:206
es8311_alc_gate_t
8311 ALC通道选择
Definition: es8311.h:144
void es8311_dac_off(void)
Definition: es8311.c:726
es8311_automute_ng_t
Definition: es8311.h:189
Definition: es8311.h:196
Definition: es8311.h:105
Definition: es8311.h:214
Definition: es8311.h:114
Definition: es8311.h:213
Definition: es8311.h:94
8311 ALC调节增益上限为-0.5dB
Definition: es8311.h:44
Definition: es8311.h:193
Definition: es8311.h:225
8311 ALC调节增益上限为11.5dB
Definition: es8311.h:48
Definition: es8311.h:122
Definition: es8311.h:116
Definition: es8311.h:104
Definition: es8311.h:103
Definition: es8311.h:129
目标幅值:-30.1dB
Definition: es8311.h:92
Definition: es8311.h:131
es8311_automute_vol_t vol
Definition: es8311.h:234
8311 ALC调节增益下限为-12dB
Definition: es8311.h:67
Definition: es8311.h:203
Definition: es8311.h:101
Definition: es8311.h:120
8311 ALC调节增益上限为17.5dB
Definition: es8311.h:50
8311 ALC调节增益下限为-6dB
Definition: es8311.h:69
Definition: es8311.h:230
Definition: es8311.h:177
Definition: es8311.h:197
Definition: es8311.h:202
Definition: es8311.h:171
Definition: es8311.h:100
Definition: es8311.h:96
Definition: es8311.h:132
es8311_pga_gain_t
Definition: es8311.h:111
Definition: es8311.h:198
Definition: es8311.h:215
8311 ALC调节增益上限为5.5dB
Definition: es8311.h:46
Definition: es8311.h:192
int8_t es8311_dac_vol_set(int8_t vol)
Definition: es8311.c:221
es8311_auto_mute_ws_t ws
Definition: es8311.h:235
Definition: es8311.h:180
es8311_automute_vol_t
Definition: es8311.h:210
Definition: es8311.h:172
8311 ALC关闭
Definition: es8311.h:147
8311 ALC调节增益上限为35.5dB
Definition: es8311.h:56
void es8311_i2c_init(void)
es8311使用的I2C初始化
Definition: es8311.c:49
Definition: es8311.h:135
Definition: es8311.h:121
es8311_auto_mute_ws_t
Definition: es8311.h:168
es8311_automute_ng_t ng
Definition: es8311.h:233
Definition: es8311.h:205
Definition: es8311.h:102
Definition: es8311.h:170
chip级定义
Definition: es8311.h:200
8311 ALC调节增益上限为-6.5dB
Definition: es8311.h:42
8311 ALC调节增益下限为6dB
Definition: es8311.h:73
float max_gain
8311 ALC maxgain
Definition: es8311.h:160
8311 ALC调节增益下限为24dB
Definition: es8311.h:79
Definition: es8311.h:115
Definition: es8311.h:93
Definition: es8311.h:136
Definition: es8311.h:219
Definition: es8311.h:133
Definition: es8311.h:182
8311 ALC配置
Definition: es8311.h:157
8311 ALC调节增益上限为29.5dB
Definition: es8311.h:54
8311 ALC调节增益下限为0dB
Definition: es8311.h:71
es8311_alc_level_t alc_max_level
8311 ALC 目标幅值设置
Definition: es8311.h:162
void es8311_dac_on(void)
Definition: es8311.c:751
8311 ALC调节增益下限为12dB
Definition: es8311.h:75
8311 ALC调节增益上限为23.5dB
Definition: es8311.h:52
Definition: es8311.h:173
Definition: es8311.h:98
void es8311_adc_gain_scale_up(es8311_adc_gain_scale_up_t scale_up)
Definition: es8311.c:112
Definition: es8311.h:117
Definition: es8311.h:107
Definition: es8311.h:217
Definition: es8311.h:194
Definition: es8311.h:181
Definition: es8311.h:175
es8311_auto_mute_en_t
Definition: es8311.h:223
Definition: es8311.h:226
Definition: es8311.h:183
Definition: es8311.h:130
void es8311_init(void)
Definition: es8311.c:544
Definition: es8311.h:123
Definition: es8311.h:195
void es8311_pga_gain(es8311_pga_gain_t gain)
Definition: es8311.c:103
Definition: es8311.h:113
Definition: es8311.h:134
Definition: es8311.h:218