annotate projects/filter_FIR/FIRfilter.h @ 12:a6beeba3a648

Initial support for higher matrix sample rates by reducing the number of channels. Input not tested yet, and not all examples updated to new format.
author andrewm
date Thu, 22 Jan 2015 19:00:22 +0000
parents 021ac8a1a4f9
children
rev   line source
victor@2 1 /*
victor@2 2 * FIRfilter.h
victor@2 3 *
victor@2 4 * Created on: Aug 5, 2014
victor@2 5 * Author: Victor Zappi and Andrew McPherson
victor@2 6 */
victor@2 7
victor@2 8 #ifndef FIRFILTER_H_
victor@2 9 #define FIRFILTER_H_
victor@2 10
victor@2 11
victor@2 12 #include <NE10.h>
victor@2 13
victor@2 14 #define FILTER_TAP_NUM 31
victor@2 15
victor@2 16 // Coefficients for FIR High Pass Filter at 3 KHz
victor@2 17 ne10_float32_t filterTaps[FILTER_TAP_NUM] = {
victor@2 18 -0.000055,
victor@2 19 0.000318,
victor@2 20 0.001401,
victor@2 21 0.003333,
victor@2 22 0.005827,
victor@2 23 0.007995,
victor@2 24 0.008335,
victor@2 25 0.004991,
victor@2 26 -0.003764,
victor@2 27 -0.018906,
victor@2 28 -0.040112,
victor@2 29 -0.065486,
victor@2 30 -0.091722,
victor@2 31 -0.114710,
victor@2 32 -0.130454,
victor@2 33 0.863946,
victor@2 34 -0.130454,
victor@2 35 -0.114710,
victor@2 36 -0.091722,
victor@2 37 -0.065486,
victor@2 38 -0.040112,
victor@2 39 -0.018906,
victor@2 40 -0.003764,
victor@2 41 0.004991,
victor@2 42 0.008335,
victor@2 43 0.007995,
victor@2 44 0.005827,
victor@2 45 0.003333,
victor@2 46 0.001401,
victor@2 47 0.000318,
victor@2 48 -0.000055
victor@2 49 };
victor@2 50
victor@2 51 #endif /* FIRFILTER_H_ */