📄 fixpoint_aec_init.c
字号:
//
// Project: Experiment 10.7.3 AEC using C55x Intrinsics - Chapter 10
// File name: fixPoint_aec_init.c
//
// Description: AEC uses the fixed-point leaky LMS algorithm
//
// For the book "Real Time Digital Signal Processing:
// Implementation and Application, 2nd Ed"
// By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
// Publisher: John Wiley and Sons, Ltd
// Tools used: CCS v.2.12.07
// TMS320VC5510 DSK Rev-C
//
#include <stdio.h>
#include <stdlib.h>
#include "fixPoint_leaky_lms.h"
void aec_init(LMS *lms,DTALK *dt)
{
lms->order = L;
lms->mu = MU;
lms->leaky = LEAKY;
dt->nearHangCount = HANGOVER_TIME;
dt->farHangCount = HANGOVER_TIME;
dt->farInPowS = 1;
dt->farInPowM = 1;
dt->micInPowS = 1;
dt->errorAECpowS = 1;
dt->trainTime = 4000;
dt->nfNear = 6000;
dt->nfFar = 6000;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -