Microchip® Advanced Software Framework

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 dsp32_t input_d [SIZE]
 Buffer containing filtered input data. More...
 
A_ALIGNED dsp32_t input_x [SIZE]
 Buffer containing input data. More...
 
A_ALIGNED dsp32_t unknown_coef_filter [FIR_COEF_SIZE]
 
A_ALIGNED dsp32_t w [FIR_COEF_SIZE]
 coefficients of the filter More...
 
A_ALIGNED dsp32_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.

Referenced by main().

Buffer containing input data.

Referenced by main().

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

coefficients of the filter

Referenced by main().