Atmel Software Framework

examples/dsp16_nlms/nlms_example.c File Reference
#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "dsp.h"
#include "dsp_debug.h"
#include "pm.h"
#include "cycle_counter.h"
#include "gpio.h"

Macros

#define FIR_COEF_SIZE   12
 
#define SIZE   64
 The size of the input signal. More...
 

Functions

int main (int argc, char *argv[])
 The main function. More...
 

Variables

A_ALIGNED dsp16_t input_d [SIZE]
 Buffer containing filtered input data. More...
 
A_ALIGNED dsp16_t input_x [SIZE]
 Buffer containing input data. More...
 
A_ALIGNED dsp16_t unknown_coef_filter [FIR_COEF_SIZE]
 
A_ALIGNED dsp16_t w [FIR_COEF_SIZE]
 coefficients of the filter More...
 
A_ALIGNED dsp16_t x [FIR_COEF_SIZE]
 

#define FIR_COEF_SIZE   12

Referenced by main().

#define SIZE   64

The size of the input signal.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Buffer containing filtered input data.

Buffer containing input data.

A_ALIGNED dsp16_t unknown_coef_filter[FIR_COEF_SIZE]
Initial value:
= {
DSP16_Q(0.0132),
DSP16_Q(0.0254),
DSP16_Q(0.0579),
DSP16_Q(0.1006),
DSP16_Q(0.1398),
DSP16_Q(0.1632),
DSP16_Q(0.1632),
DSP16_Q(0.1398),
DSP16_Q(0.1006),
DSP16_Q(0.0579),
DSP16_Q(0.0254),
}
#define DSP16_Q(fnum)
Convert a float into a 16-bit signed fixed-point type.
Definition: dsp_types.h:297

coefficients of the filter