Skip to content

Instantly share code, notes, and snippets.

@lilltroll77
Created April 24, 2011 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lilltroll77/939921 to your computer and use it in GitHub Desktop.
Save lilltroll77/939921 to your computer and use it in GitHub Desktop.
Test of FIR filter
#include <stdio.h>
#include <print.h>
#include "fir.h"
int coeffs[8];
int state[8];
int main() {
int num = 0 ;
for (int i=0;i<8;i++)
coeffs[i]=i<<24; // 0,1,2,3,4,5,6,7
printintln(fir(0, coeffs, state,8));
for(int j=0;j<8;j++){
printintln(fir(num, coeffs, state,8));
num+=1;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment