X-Git-Url: http://sraa.de/git/?a=blobdiff_plain;f=dol%2Fexamples%2Fexample7%2Fsrc%2Ffilter.h;fp=dol%2Fexamples%2Fexample7%2Fsrc%2Ffilter.h;h=8d6b07b4a89f1df41b7b06700afee5b6e6dba633;hb=8c411cf24ed0eb889191aaeafd8fa1e69081df42;hp=0000000000000000000000000000000000000000;hpb=dea7a4fb1ed110d3ce6e6d9255103d724bd66c0e;p=jump.git diff --git a/dol/examples/example7/src/filter.h b/dol/examples/example7/src/filter.h new file mode 100644 index 0000000..8d6b07b --- /dev/null +++ b/dol/examples/example7/src/filter.h @@ -0,0 +1,23 @@ +#ifndef FILTER_H +#define FILTER_H + +#include +#include "global.h" + +#define PORT_INA "inA" +#define PORT_INB "inB" +#define PORT_OUTA "outA" +#define PORT_OUTB "outB" + +typedef struct _local_states +{ + char id[10]; //will contain "filter_xx" + int first_invocation; + int process_index; + float inA, inB, out, filter_coefficient, zero; +} Filter_State; + +void filter_init(DOLProcess *); +int filter_fire(DOLProcess *); + +#endif