Microchip® Advanced Software Framework

dsp32_iirpart/iirpart_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 DEN_SIZE   18
 
#define NUM_SIZE   19
 
#define PREDIV   2
 
#define SIZE   144
 The size of the input signal. More...
 

Functions

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

Variables

A_ALIGNED dsp32_t den [DEN_SIZE]
 
A_ALIGNED dsp32_t num [NUM_SIZE]
 
A_ALIGNED dsp32_t x [SIZE+NUM_SIZE]
 The input signal. More...
 
A_ALIGNED dsp32_t y [SIZE+DEN_SIZE]
 The output buffer. More...
 

#define DEN_SIZE   18

Referenced by main().

#define NUM_SIZE   19

Referenced by main().

#define PREDIV   2

Referenced by main().

#define SIZE   144

The size of the input signal.

Referenced by main().

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

Initial value:
= {
DSP32_Q(0.0000000000000001427/(1 << PREDIV)),
DSP32_Q(2.4446755/(1 << PREDIV)),
DSP32_Q(0.0000000000000002630/(1 << PREDIV)),
DSP32_Q(2.3222667/(1 << PREDIV)),
DSP32_Q(0.0000000000000002022/(1 << PREDIV)),
DSP32_Q(1.1033779/(1 << PREDIV)),
DSP32_Q(0.0000000000000000792/(1 << PREDIV)),
DSP32_Q(0.2817442/(1 << PREDIV)),
DSP32_Q(0.00000000000000001608/(1 << PREDIV)),
DSP32_Q(0.0387225/(1 << PREDIV)),
DSP32_Q(0.000000000000000001608/(1 << PREDIV)),
DSP32_Q(0.0027201/(1 << PREDIV)),
DSP32_Q(0.00000000000000000007254/(1 << PREDIV)),
DSP32_Q(0.00008640036584533501/(1 << PREDIV)),
DSP32_Q(0.000000000000000000001232/(1 << PREDIV)),
DSP32_Q(0.0000009/(1 << PREDIV)),
DSP32_Q(-0.00000000000000000000/(1 << PREDIV)),
}
#define PREDIV
Definition: dsp32_iirpart/iirpart_example.c:92
#define DSP32_Q(fnum)
Convert a float into a 32-bit signed fixed-point type.
Definition: dsp_types.h:294
Initial value:
= {
DSP32_Q(0.0000274/(1 << PREDIV)),
DSP32_Q(0.0004939/(1 << PREDIV)),
DSP32_Q(0.0041985/(1 << PREDIV)),
DSP32_Q(0.0223922/(1 << PREDIV)),
DSP32_Q(0.0839706/(1 << PREDIV)),
DSP32_Q(0.2351178/(1 << PREDIV)),
DSP32_Q(0.5094219/(1 << PREDIV)),
DSP32_Q(0.8732946/(1 << PREDIV)),
DSP32_Q(1.2007801/(1 << PREDIV)),
DSP32_Q(1.3342001/(1 << PREDIV)),
DSP32_Q(1.2007801/(1 << PREDIV)),
DSP32_Q(0.8732946/(1 << PREDIV)),
DSP32_Q(0.5094219/(1 << PREDIV)),
DSP32_Q(0.2351178/(1 << PREDIV)),
DSP32_Q(0.0839706/(1 << PREDIV)),
DSP32_Q(0.0223922/(1 << PREDIV)),
DSP32_Q(0.0041985/(1 << PREDIV)),
DSP32_Q(0.0004939/(1 << PREDIV)),
}
#define PREDIV
Definition: dsp32_iirpart/iirpart_example.c:92
#define DSP32_Q(fnum)
Convert a float into a 32-bit signed fixed-point type.
Definition: dsp_types.h:294

The input signal.

The output buffer.