• 大小: 19.18MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-27
  • 语言: 其他
  • 标签: 蓝牙  

资源简介

杰理AC6905芯片的代码,可用开发蓝牙音箱,蓝牙耳机. (1)、AC6901A -- 48脚 --- 支持驱动屏,足够的IO口应用场合,基本就是功能最全,但是也最贵 (2)、AC6905A -- 24脚 --- 支持U盘、TF卡、蓝牙、FM,IO很少的场合,双声道 (3)、AC6905B -- 24脚 --- 和AC6905A一样,只是它是单声道而已,相比较便宜一点 (4)、AC6905C -- 24脚 -- 和AC6905C类似,但是没有FM功能,双声道 (5)、AC6908C -- 20脚 -- 这个是纯蓝牙单声道,不带插卡功能,价格最便宜

资源截图

代码片段和文件信息

#include “aec/aec_api.h“
#include “sdk_cfg.h“
#include “dac/ladc.h“
#include “record.h“

 //aec配置
AEC_CFG aec_interface =
{
    .dac_analog_gain = 20   //dac最大模拟增益
    .mic_analog_gain = 25    //mic模拟增益
.aec_toggle = 1         //aec_toggle default open
    .agc_params =  set_agc_params
    .agc_params2 = set_agc_params2
    .argv_params =  set_argv_params
    .argv_eq_table =  set_argv_eq_table
    .fill_dac_echo_buf =  fill_dac_echo_buf
    .fill_adc_ref_buf =  fill_adc_ref_buf
    .aec_task_start = aec_task_start
    .aec_stop =  aec_stop
    .aec_ladc_init = ladc_reg_init
.aec_ladc_off  = ladc_close
    .aec_set_mic_gain = ladc_mic_gain
#if BT_REC_EN
   .rec_mic_buf_write = bt_rec_buf_write
#else 
   .rec_mic_buf_write = NULL
#endif
   
};

const int eq_tab[65] =
{
#if 1
327683276832768327683276832768327683276832768327683276832768327683276832768

327683276832768327683276832768327683276832768327683276832768
//32768*2/332768*2/332768*2/332768*2/332768*2/332768*2/332768*2/332768*2/332768*2/332768*2/332768*2/332768*2/3
//32768*232768*232768*232768*232768*232768*232768*232768*232768*232768*232768*232768*2
//32768*332768*332768*332768*332768*332768*332768*332768*332768*332768*332768*332768*3

32768327683276832768327683276832768327683276832768327683276832768327683276832768
32768327683276832768327683276832768327683276832768327683276832768327683276832768
327683276832768327683276832768
#else
3276832768327683660148867513215181151909519295193351934519345193451934519345193451934
5193451934519345193451934519345193448101358353338132891327933277332769327683276832768
3276832768327683276832768327683276832768327683276832768327683276832768327683276832768
3276832768327683276832768327683276832768327683276832768327683276832768
#endif
};

int parNum_advance[] = {0123456};
int value_advance[] = {10601022867213110*4};

#define AEC_REDUCE BIT(0)
#define AEC_ADVANCE BIT(14)

void aec_after_init_set()
{
//set_advanced_params(parNum_advancesizeof(parNum_advance)/4value_advance);
}
void agc_init()
{
    //void set_agc_params(u16 gainu16 NDT_max_gainu16 NDT_min_gain u16 NDT_Fade_Speed)
    if(aec_interface.agc_params)
    {
        aec_interface.agc_params(64  512 64 20);
    }
    //set_agc_params2(u16 FarEnd_Talk_Thresholdu16 NearEnd_Begin_Thresholdu16 e_slowu16 x_slowu16 frame_cnt)
    if(aec_interface.agc_params2)
    {
        aec_interface.agc_params2(1000  30 0 0 0);
    }
    //set_argv_params(u16 suppress_coeff1u16 suppress_coeff2u16 detect_thr u16 detect_min_gainu16 eq_gainu16 adc_pre_delayu16 dac_pre_delayu16 aec_ctl)
    if(aec_interface.argv_params)
    {
        /*
  Reduce Version:当dac声音容易被mic采到,aec_ctl = 0,否则aec_ctl = BIT(0)节省部分运算(For Earphone)
  Advance Version:set aec_ctl = BIT(14)open all aec modules (For Speaker) 120Mh

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\
     文件        5707  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\Makefile
     文件       27529  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\ac690x_app.cbp
     文件         176  2018-01-08 14:18  ac69_sdk_v2012_p4\apps_headphone\ac690x_app.layout
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\bluetooth\
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\bluetooth\aec\
     文件        3282  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\bluetooth\aec\aec_api.c
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\bluetooth\btstack\
     文件       21082  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\bluetooth\btstack\bt_configs_user.c
     文件       41203  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\bluetooth\btstack\bt_key_deal.c
     文件        8097  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\bluetooth\btstack\bt_key_msg.c
     文件         892  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\bluetooth\btstack\bt_ui.c
     文件        4533  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\bluetooth\btstack\fcc_test.c
     文件         176  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\br16_app_lab.layout
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\common\
     文件        2413  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\ASCII_lib.c
     文件         444  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\common.c
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\common\dev_manage\
     文件        3757  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\dev_manage\dev_ctl.c
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\common\file_operate\
     文件       11612  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\file_operate\file_bs_deal.c
     文件       20380  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\file_operate\file_operate.c
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\common\htk\
     文件       13499  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\htk\htk.c
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\common\os_api\
     文件        3955  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\os_api\os_api.c
     文件        9391  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\os_api\task_manage.c
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\common\play_sel\
     文件       22044  2018-01-08 10:47  ac69_sdk_v2012_p4\apps_headphone\common\play_sel\play_sel.c
     目录           0  2018-01-12 16:00  ac69_sdk_v2012_p4\apps_headphone\common\vm\
............此处省略1177个文件信息

评论

共有 条评论