CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
结构体 | 枚举 | 函数
es8388.h 文件参考
#include <stdint.h>
#include "ci130x_system.h"

浏览源代码.

结构体

struct  es8388_input_cha_t
 8388 ADC input channal选择的结构体 更多...
 
struct  es8388_alc_config_t
 8388 ALC配置 更多...
 

枚举

enum  es8388_cha_sel_t {
  ES8388_CHA_RIGHT = 0,
  ES8388_CHA_LEFT = 1,
  ES8388_CHA_STEREO = 2
}
 8388通道选择 更多...
 
enum  es8388_mode_sel_t {
  ES8388_MODE_SLAVE = 0,
  ES8388_MODE_MASTER = 1
}
 8388主从模式设置 更多...
 
enum  es8388_adc_data_len_t {
  ES8388_ADC_DATA_LEN_24BIT =(0x0<<2),
  ES8388_ADC_DATA_LEN_20BIT =(0x1<<2),
  ES8388_ADC_DATA_LEN_18BIT =(0x2<<2),
  ES8388_ADC_DATA_LEN_16BIT =(0x3<<2),
  ES8388_ADC_DATA_LEN_32BIT =(0x4<<2)
}
 8388数据宽度设置 更多...
 
enum  es8388_adc_data_format_t {
  ES8388_ADC_DATA_FORMAT_I2S =(0x0<<0),
  ES8388_ADC_DATA_FORMAT_LEFT_JUSTIFY =(0x1<<0),
  ES8388_ADC_DATA_FORMAT_RIGHT_JUSTIFY =(0x2<<0),
  ES8388_ADC_DATA_FORMAT_PCM_JUSTIFY =(0x3<<0)
}
 8388数据格式设置 更多...
 
enum  es8388_alc_maxgain_t {
  ES8388_ALC_MAXGAIN__6_5dB = (0<<3),
  ES8388_ALC_MAXGAIN__0_5dB = (1<<3),
  ES8388_ALC_MAXGAIN_5_5dB = (2<<3),
  ES8388_ALC_MAXGAIN_11_5dB = (3<<3),
  ES8388_ALC_MAXGAIN_17_5dB = (4<<3),
  ES8388_ALC_MAXGAIN_23_5dB = (5<<3),
  ES8388_ALC_MAXGAIN_29_5dB = (6<<3),
  ES8388_ALC_MAXGAIN_35_5dB = (7<<3)
}
 8388 ALC调节上限 更多...
 
enum  es8388_alc_mingain_t {
  ES8388_ALC_MINGAIN__12dB = (0<<0),
  ES8388_ALC_MINGAIN__6dB = (1<<0),
  ES8388_ALC_MINGAIN_0dB = (2<<0),
  ES8388_ALC_MINGAIN_6dB = (3<<0),
  ES8388_ALC_MINGAIN_12dB = (4<<0),
  ES8388_ALC_MINGAIN_18dB = (5<<0),
  ES8388_ALC_MINGAIN_24dB = (6<<0),
  ES8388_ALC_MINGAIN_30dB = (7<<0)
}
 8388 ALC调节下限 更多...
 
enum  es8388_alc_level_t {
  ES8388_ALC_LEVEL__16_5dB = (0<<4),
  ES8388_ALC_LEVEL__15dB = (1<<4),
  ES8388_ALC_LEVEL__13_5dB = (2<<4),
  ES8388_ALC_LEVEL__12dB = (3<<4),
  ES8388_ALC_LEVEL__10_5dB = (4<<4),
  ES8388_ALC_LEVEL__9dB = (5<<4),
  ES8388_ALC_LEVEL__7_5dB = (6<<4),
  ES8388_ALC_LEVEL__6dB = (7<<4),
  ES8388_ALC_LEVEL__4_5dB = (8<<4),
  ES8388_ALC_LEVEL__3dB = (9<<4),
  ES8388_ALC_LEVEL__1_5dB = (10<<4)
}
 8388 ALC目标幅值(dB为单位) 更多...
 
enum  es8388_alc_cha_gate_t {
  ES8388_ALC_OFF = (0<<6),
  ES8388_ALC_R_ONLY = (1<<6),
  ES8388_ALC_L_ONLY = (2<<6),
  ES8388_ALC_STEREO = (3<<6)
}
 8388 ALC通道选择 更多...
 
enum  es8388_num_sel_t {
  ES8388_NUM1 = 1,
  ES8388_NUM2 = 2,
  ES8388_NUM3 = 3
}
 
enum  es8388_mic_amp_t {
  ES8388_MICAMP_0dB = 0,
  ES8388_MICAMP_3dB,
  ES8388_MICAMP_6dB,
  ES8388_MICAMP_9dB,
  ES8388_MICAMP_12dB,
  ES8388_MICAMP_15dB,
  ES8388_MICAMP_18dB,
  ES8388_MICAMP_21dB,
  ES8388_MICAMP_24dB,
  ES8388_MICAMP_27dB,
  ES8388_MICAMP_30dB,
  ES8388_MICAMP_33dB
}
 8388 MIC增益 更多...
 
enum  es8388_adc_inv_sel_t {
  ES8388_ADC_INV_DISABLE = 0,
  ES8388_ADC_INV_ENABLE = 1
}
 8388 ADC数据极性选择,ENABLE和DISABLE的数据的相位有180度的差距 更多...
 
enum  es8388_dac_data_len_t {
  ES8388_DAC_DATA_LEN_24BIT = (0x0<<3),
  ES8388_DAC_DATA_LEN_20BIT = (0x1<<3),
  ES8388_DAC_DATA_LEN_18BIT = (0x2<<3),
  ES8388_DAC_DATA_LEN_16BIT = (0x3<<3),
  ES8388_DAC_DATA_LEN_32BIT = (0x4<<3)
}
 8388 DAC数据宽度 更多...
 
enum  es8388_dac_data_format_t {
  ES8388_DAC_DATA_FORMAT_I2S =(0x0<<1),
  ES8388_DAC_DATA_FORMAT_LEFT_JUSTIFY =(0x1<<1),
  ES8388_DAC_DATA_FORMAT_RIGHT_JUSTIFY =(0x2<<1),
  ES8388_DAC_DATA_FORMAT_PCM_JUSTIFY =(0x3<<1)
}
 8388 DAC数据格式 更多...
 

函数

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的数据格式设置 更多...
 
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增益的设置 更多...
 
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 更多...
 
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 数据极性反转 更多...
 
void ES8388_aec_setting (es8388_num_sel_t num_8388)
 在AEC的情况下8388的配置(参照一代工程) 更多...
 
void ES8388_alc_gate (es8388_num_sel_t num_8388, es8388_alc_cha_gate_t ALC_gate)
 
void ES8388_alc_max_gain_set (es8388_num_sel_t num_8388, es8388_alc_maxgain_t max_gain)
 
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数据格式设置 更多...
 
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四个通道的声音大小的设置 更多...
 
void ES8388_DAC_mute (es8388_num_sel_t num_8388, FunctionalState cmd)
 DAC mute开关 更多...
 
void ES8388_DAC_power (es8388_num_sel_t num_8388, es8388_cha_sel_t cha, FunctionalState cmd)
 各个通道DAC电源的开关 更多...
 
int32_t ES8388_play_init (es8388_num_sel_t es8388_num)
 根据8388的编号初始化8388 更多...
 

详细描述

版本
0.1
日期
2019-03-28