Atmel Software Framework

examples/dsp16_fir/fir_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"

Macros

#define FIR_COEF_SIZE   25
 The number of tap. More...
 
#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 fir_coef [FIR_COEF_SIZE]
 
A_ALIGNED dsp16_t x [SIZE]
 The input signal. More...
 
A_ALIGNED dsp16_t y [SIZE-FIR_COEF_SIZE+1+4]
 The output buffer. More...
 

#define FIR_COEF_SIZE   25

The number of tap.

Referenced by main().

#define SIZE   64

The size of the input signal.

Referenced by main().

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

Initial value:
= {
DSP16_Q(-0.01559148806),
DSP16_Q(-0.00894210585),
DSP16_Q(0.00000000000),
DSP16_Q(0.01092924048),
DSP16_Q(0.02338723209),
DSP16_Q(0.03678830106),
DSP16_Q(0.05045511524),
DSP16_Q(0.06366197724),
DSP16_Q(0.07568267286),
DSP16_Q(0.08583936913),
DSP16_Q(0.09354892838),
DSP16_Q(0.09836316431),
DSP16_Q(0.10000000000),
DSP16_Q(0.09836316431),
DSP16_Q(0.09354892838),
DSP16_Q(0.08583936913),
DSP16_Q(0.07568267286),
DSP16_Q(0.06366197724),
DSP16_Q(0.05045511524),
DSP16_Q(0.03678830106),
DSP16_Q(0.02338723209),
DSP16_Q(0.01092924048),
DSP16_Q(0.00000000000),
DSP16_Q(-0.00894210585),
}
#define DSP16_Q(fnum)
Convert a float into a 16-bit signed fixed-point type.
Definition: dsp_types.h:297

The input signal.

The output buffer.