digital_filter.h
Go to the documentation of this file.
1 /*
2  Copyright 2012-2014 Benjamin Vedder benjamin@vedder.se
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * digital_filter.h
20  *
21  * Created on: 24 nov 2012
22  * Author: benjamin
23  */
24 
25 #ifndef DIGITAL_FILTER_H_
26 #define DIGITAL_FILTER_H_
27 
28 #include <stdint.h>
29 
30 // Functions
31 void filter_fft(int dir, int m, float *real, float *imag);
32 void filter_dft(int dir, int len, float *real, float *imag);
33 void filter_fftshift(float *data, int len);
34 void filter_hamming(float *data, int len);
35 void filter_zeroPad(float *data, float *result, int dataLen, int resultLen);
36 void filter_create_fir_lowpass(float *filter_vector, float f_break, int bits, int use_hamming);
37 float filter_run_fir_iteration(float *vector, float *filter, int bits, uint32_t offset);
38 void filter_add_sample(float *buffer, float sample, int bits, uint32_t *offset);
39 
40 #endif /* DIGITAL_FILTER_H_ */
void filter_fftshift(float *data, int len)
Definition: digital_filter.c:137
void filter_fft(int dir, int m, float *real, float *imag)
Definition: digital_filter.c:30
void filter_hamming(float *data, int len)
Definition: digital_filter.c:147
void filter_add_sample(float *buffer, float sample, int bits, uint32_t *offset)
Definition: digital_filter.c:234
void filter_create_fir_lowpass(float *filter_vector, float f_break, int bits, int use_hamming)
Definition: digital_filter.c:171
float filter_run_fir_iteration(float *vector, float *filter, int bits, uint32_t offset)
Definition: digital_filter.c:208
void filter_dft(int dir, int len, float *real, float *imag)
Definition: digital_filter.c:97
void filter_zeroPad(float *data, float *result, int dataLen, int resultLen)
Definition: digital_filter.c:161