dsp16_echo_cancellation.c File Reference


Detailed Description

generic 16-bit AEC

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file dsp16_echo_cancellation.c.

#include "dsp.h"
#include "dsp_echo_cancellation.h"

Go to the source code of this file.

Functions

void dsp16_echo_cancellation_compute (dsp16_t *out, dsp16_t in_mic, dsp16_t in_speaker)
void dsp16_echo_cancellation_init ()

Variables

static A_ALIGNED dsp16_t dsp16_w [DSP_ECHO_CANCELLATION_BUFFER_SIZE]
static A_ALIGNED dsp16_t dsp16_x [DSP_ECHO_CANCELLATION_BUFFER_SIZE]


Function Documentation

void dsp16_echo_cancellation_compute ( dsp16_t out,
dsp16_t  in_mic,
dsp16_t  in_speaker 
)

Definition at line 63 of file dsp16_echo_cancellation.c.

References dsp16_filt_nlms(), dsp16_w, dsp16_x, and DSP_ECHO_CANCELLATION_BUFFER_SIZE.

00064 {
00065   dsp16_t y;
00066 
00067   dsp16_filt_nlms(dsp16_x, dsp16_w, DSP_ECHO_CANCELLATION_BUFFER_SIZE, in_speaker, in_mic, &y, out);
00068 }

void dsp16_echo_cancellation_init (  ) 

Definition at line 52 of file dsp16_echo_cancellation.c.

References dsp16_w, dsp16_x, and DSP_ECHO_CANCELLATION_BUFFER_SIZE.

00053 {
00054   int i;
00055 
00056   for(i=0; i<DSP_ECHO_CANCELLATION_BUFFER_SIZE; i++)
00057   {
00058     dsp16_w[i] = 0;
00059     dsp16_x[i] = 0;
00060   }
00061 }


Variable Documentation

A_ALIGNED dsp16_t dsp16_w[DSP_ECHO_CANCELLATION_BUFFER_SIZE] [static]

A_ALIGNED dsp16_t dsp16_x[DSP_ECHO_CANCELLATION_BUFFER_SIZE] [static]


Generated on Fri Feb 19 02:23:18 2010 for AVR32 UC3 - EVK1104 DSPLib Demo Documentation by  doxygen 1.5.5