CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
es8388.h
浏览该文件的文档.
1 
12 #ifndef __ES8388_H
13 #define __ES8388_H
14 
15 #include <stdint.h>
16 #include "ci130x_system.h"
17 
18 
25 #ifdef __cplusplus
26  extern "C" {
27 #endif
28 
38 typedef enum
39 {
47 
48 
53 typedef enum
54 {
60 
61 
66 typedef enum
67 {
79 
80 
85 typedef enum
86 {
96 
97 
102 typedef struct
103 {
108  uint8_t ds_sel; //
109  uint8_t dsr; //
110  uint8_t dsl; //
111  uint8_t monomix;
112  uint8_t tri;
114 
115 
120 typedef enum
121 {
138 }es8388_alc_maxgain_t;//ALC最大增益调节上限
139 
140 
145 typedef enum
146 {
163 }es8388_alc_mingain_t;//ALC最小增益调节下限
164 
165 
170 typedef enum
171 {
194 }es8388_alc_level_t;//ALC调节声音的目标幅度
195 
196 
201 typedef enum
202 {
204  ES8388_ALC_OFF = (0<<6),
212 
213 
218 typedef struct
219 {
227 
228 
229 typedef enum
230 {
235 
236 
241 typedef enum
242 {
268 
269 
274 typedef enum
275 {
281 
282 
287 typedef enum
288 {
300 
301 
306 typedef enum
307 {
317 
318 //ADC
323 void ES8388_aec_setting(es8388_num_sel_t num_8388);
326 
327 //DAC
329 int32_t ES8388_dac_vol_set(es8388_num_sel_t num_8388,int32_t l1vol,int32_t r1vol,int32_t l2vol,int32_t r2vol);
332 
333 //ALL
334 int32_t ES8388_play_init(es8388_num_sel_t es8388_num);
335 
336 
337 
338 #ifdef __cplusplus
339 }
340 #endif
341 
346 #endif
347 /***************** (C) COPYRIGHT Chipintelli Technology Co., Ltd. *****END OF FILE****/
348 
8388做主模式
Definition: es8388.h:58
8388 MIC增益30dB
Definition: es8388.h:264
8388 ALC调节增益上限为5.5dB
Definition: es8388.h:127
8388 MIC增益33dB
Definition: es8388.h:266
Definition: es8388.h:232
8388 ALC配置
Definition: es8388.h:218
8388 ADC数据格式为左对齐格式
Definition: es8388.h:90
8388 ALC调节增益上限为-6.5dB
Definition: es8388.h:123
8388 ALC开启双通道
Definition: es8388.h:210
目标幅值:-10.5dB
Definition: es8388.h:181
8388 ALC 只开启右通道
Definition: es8388.h:206
es8388_alc_maxgain_t alc_maxgain
8388 ALC 最大增益设置
Definition: es8388.h:221
int32_t ES8388_ADC_mic_amplify_set(es8388_num_sel_t num_8388, es8388_mic_amp_t l_amp, es8388_mic_amp_t r_amp)
设置8388 MIC增益的设置
Definition: es8388.c:272
目标幅值:-15dB
Definition: es8388.h:175
uint8_t l_input_single_sel
ADC 左通道输入模式选择
Definition: es8388.h:105
8388 ADC数据宽度为24bit
Definition: es8388.h:69
es8388_mic_amp_t
8388 MIC增益
Definition: es8388.h:241
uint8_t dsl
Definition: es8388.h:110
8388 ALC调节增益上限为11.5dB
Definition: es8388.h:129
8388 DAC数据宽度20bit
Definition: es8388.h:292
8388 DAC数据宽度32bit
Definition: es8388.h:298
es8388_num_sel_t
Definition: es8388.h:229
8388 ALC调节增益下限为12dB
Definition: es8388.h:156
8388 ADC采集的数据相位调整180度
Definition: es8388.h:279
8388 MIC增益18dB
Definition: es8388.h:256
void ES8388_DAC_power(es8388_num_sel_t num_8388, es8388_cha_sel_t cha, FunctionalState cmd)
各个通道DAC电源的开关
Definition: es8388.c:1317
8388 DAC数据格式为标准IIS格式
Definition: es8388.h:309
es8388_alc_mingain_t alc_mingain
8388 ALC 最小增益设置
Definition: es8388.h:223
8388 MIC增益9dB
Definition: es8388.h:250
8388做从模式
Definition: es8388.h:56
8388 MIC增益6dB
Definition: es8388.h:248
8388 ALC调节增益上限为29.5dB
Definition: es8388.h:135
8388 MIC增益24dB
Definition: es8388.h:260
8388 ALC关闭
Definition: es8388.h:204
8388 ALC调节增益上限为17.5dB
Definition: es8388.h:131
uint8_t tri
Definition: es8388.h:112
8388 ALC调节增益上限为23.5dB
Definition: es8388.h:133
8388 ALC调节增益上限为-0.5dB
Definition: es8388.h:125
8388 ALC调节增益下限为6dB
Definition: es8388.h:154
双声道
Definition: es8388.h:45
int32_t ES8388_dac_vol_set(es8388_num_sel_t num_8388, int32_t l1vol, int32_t r1vol, int32_t l2vol, int32_t r2vol)
DAC四个通道的声音大小的设置
Definition: es8388.c:1116
8388 DAC数据宽度18bit
Definition: es8388.h:294
8388 ALC调节增益下限为18dB
Definition: es8388.h:158
8388 MIC增益27dB
Definition: es8388.h:262
目标幅值:-16.5dB
Definition: es8388.h:173
目标幅值:-6dB
Definition: es8388.h:187
8388 MIC增益3dB
Definition: es8388.h:246
8388 ADC数据宽度为16bit
Definition: es8388.h:75
es8388_adc_data_format_t
8388数据格式设置
Definition: es8388.h:85
uint8_t r_input_single_sel
ADC 右通道输入模式选择
Definition: es8388.h:107
es8388_alc_cha_gate_t
8388 ALC通道选择
Definition: es8388.h:201
8388 ALC调节增益下限为24dB
Definition: es8388.h:160
目标幅值:-9dB
Definition: es8388.h:183
8388 ADC数据格式为PCM格式
Definition: es8388.h:94
es8388_alc_level_t
8388 ALC目标幅值(dB为单位)
Definition: es8388.h:170
es8388_mode_sel_t
8388主从模式设置
Definition: es8388.h:53
8388 ADC数据格式为右对齐格式
Definition: es8388.h:92
目标幅值:-7.5dB
Definition: es8388.h:185
uint8_t monomix
Definition: es8388.h:111
uint8_t ds_sel
Definition: es8388.h:108
8388 DAC数据宽度24bit
Definition: es8388.h:290
8388 ALC 只开启左通道
Definition: es8388.h:208
int32_t ES8388_ADC_invl_config(es8388_num_sel_t num_8388, es8388_adc_inv_sel_t gate_l, es8388_adc_inv_sel_t gate_r)
设置8388 ADC 数据极性反转
Definition: es8388.c:432
Definition: es8388.h:231
8388 DAC数据格式为右对齐格式
Definition: es8388.h:313
8388 ALC调节增益下限为30dB
Definition: es8388.h:162
void ES8388_DAC_mute(es8388_num_sel_t num_8388, FunctionalState cmd)
DAC mute开关
Definition: es8388.c:1343
es8388_alc_level_t alc_level
8388 ALC 目标幅值设置
Definition: es8388.h:225
int32_t ES8388_play_init(es8388_num_sel_t es8388_num)
根据8388的编号初始化8388
Definition: es8388.c:1181
目标幅值:-1.5dB
Definition: es8388.h:193
chip级定义
int32_t ES8388_ADC_data_format_set(es8388_num_sel_t num_8388, es8388_adc_data_len_t data_length, es8388_adc_data_format_t data_format)
ADC的数据格式设置
Definition: es8388.c:363
左声道
Definition: es8388.h:43
es8388_dac_data_format_t
8388 DAC数据格式
Definition: es8388.h:306
8388 ADC数据宽度为32bit
Definition: es8388.h:77
8388 DAC数据宽度16bit
Definition: es8388.h:296
uint8_t dsr
Definition: es8388.h:109
es8388_dac_data_len_t
8388 DAC数据宽度
Definition: es8388.h:287
8388 ADC数据宽度为18bit
Definition: es8388.h:73
右声道
Definition: es8388.h:41
es8388_adc_inv_sel_t
8388 ADC数据极性选择,ENABLE和DISABLE的数据的相位有180度的差距
Definition: es8388.h:274
FunctionalState
Definition: ci130x_system.h:86
8388 ALC调节增益上限为35.5dB
Definition: es8388.h:137
es8388_alc_mingain_t
8388 ALC调节下限
Definition: es8388.h:145
void ES8388_alc_max_gain_set(es8388_num_sel_t num_8388, es8388_alc_maxgain_t max_gain)
Definition: es8388.c:675
void ES8388_aec_setting(es8388_num_sel_t num_8388)
在AEC的情况下8388的配置(参照一代工程)
Definition: es8388.c:1358
8388 ADC采集的数据相位不变
Definition: es8388.h:277
void ES8388_alc_gate(es8388_num_sel_t num_8388, es8388_alc_cha_gate_t ALC_gate)
Definition: es8388.c:665
Definition: es8388.h:233
es8388_adc_data_len_t
8388数据宽度设置
Definition: es8388.h:66
目标幅值:-3dB
Definition: es8388.h:191
目标幅值:-13.5dB
Definition: es8388.h:177
目标幅值:-4.5dB
Definition: es8388.h:189
8388 ADC input channal选择的结构体
Definition: es8388.h:102
8388 MIC增益21dB
Definition: es8388.h:258
8388 DAC数据格式为PCM格式
Definition: es8388.h:315
es8388_alc_maxgain_t
8388 ALC调节上限
Definition: es8388.h:120
8388 ALC调节增益下限为-12dB
Definition: es8388.h:148
8388 ADC数据宽度为20bit
Definition: es8388.h:71
8388 ADC数据格式为标准IIS格式
Definition: es8388.h:88
int32_t ES8388_DAC_data_format_set(es8388_num_sel_t num_8388, es8388_dac_data_len_t data_length, es8388_dac_data_format_t data_format)
设置8388 DAC数据格式设置
Definition: es8388.c:738
8388 DAC数据格式为左对齐格式
Definition: es8388.h:311
es8388_cha_sel_t
8388通道选择
Definition: es8388.h:38
int32_t ES8388_ALC_config(es8388_num_sel_t num_8388, es8388_alc_config_t *ALC_Type, es8388_alc_cha_gate_t ALC_gate)
配置8388的ALC
Definition: es8388.c:626
8388 MIC增益0dB
Definition: es8388.h:244
8388 ALC调节增益下限为0dB
Definition: es8388.h:152
8388 ALC调节增益下限为-6dB
Definition: es8388.h:150
8388 MIC增益15dB
Definition: es8388.h:254
目标幅值:-12dB
Definition: es8388.h:179
8388 MIC增益12dB
Definition: es8388.h:252