annotate projects/d-box/FIRfilter.h @ 151:e9c9404e3d1f ClockSync

Pff partially working. No PID. When setting the audio clock on the bbb to 44098 the master and slave clock keep diverging instead of converging ...
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 22 Sep 2015 04:10:07 +0100
parents 8a575ba3ab52
children
rev   line source
andrewm@0 1 /*
andrewm@0 2 * FIRfilter.h
andrewm@0 3 *
andrewm@0 4 * Created on: Aug 5, 2014
andrewm@0 5 * Author: Victor Zappi and Andrew McPherson
andrewm@0 6 */
andrewm@0 7
andrewm@0 8 #ifndef FIRFILTER_H_
andrewm@0 9 #define FIRFILTER_H_
andrewm@0 10
andrewm@0 11
andrewm@0 12 #include <NE10.h>
andrewm@0 13
andrewm@0 14 //#define FILTER_TAP_NUM 21
andrewm@0 15 //ne10_float32_t filterTaps[FILTER_TAP_NUM] = {
andrewm@0 16 // 0.000350,
andrewm@0 17 // 0.001133,
andrewm@0 18 // 0.002407,
andrewm@0 19 // 0.004203,
andrewm@0 20 // 0.006468,
andrewm@0 21 // 0.009057,
andrewm@0 22 // 0.011748,
andrewm@0 23 // 0.014265,
andrewm@0 24 // 0.016323,
andrewm@0 25 // 0.017671,
andrewm@0 26 // 0.018141,
andrewm@0 27 // 0.017671,
andrewm@0 28 // 0.016323,
andrewm@0 29 // 0.014265,
andrewm@0 30 // 0.011748,
andrewm@0 31 // 0.009057,
andrewm@0 32 // 0.006468,
andrewm@0 33 // 0.004203,
andrewm@0 34 // 0.002407,
andrewm@0 35 // 0.001133,
andrewm@0 36 // 0.000350
andrewm@0 37 //};
andrewm@0 38 #define FILTER_TAP_NUM 31
andrewm@0 39 ne10_float32_t filterTaps[FILTER_TAP_NUM] = {
andrewm@0 40 0.000018,
andrewm@0 41 0.000043,
andrewm@0 42 0.000078,
andrewm@0 43 0.000125,
andrewm@0 44 0.000183,
andrewm@0 45 0.000252,
andrewm@0 46 0.000330,
andrewm@0 47 0.000415,
andrewm@0 48 0.000504,
andrewm@0 49 0.000592,
andrewm@0 50 0.000677,
andrewm@0 51 0.000754,
andrewm@0 52 0.000818,
andrewm@0 53 0.000866,
andrewm@0 54 0.000897,
andrewm@0 55 0.000907,
andrewm@0 56 0.000897,
andrewm@0 57 0.000866,
andrewm@0 58 0.000818,
andrewm@0 59 0.000754,
andrewm@0 60 0.000677,
andrewm@0 61 0.000592,
andrewm@0 62 0.000504,
andrewm@0 63 0.000415,
andrewm@0 64 0.000330,
andrewm@0 65 0.000252,
andrewm@0 66 0.000183,
andrewm@0 67 0.000125,
andrewm@0 68 0.000078,
andrewm@0 69 0.000043,
andrewm@0 70 0.000018
andrewm@0 71 };
andrewm@0 72
andrewm@0 73 #endif /* FIRFILTER_H_ */