aboutsummaryrefslogtreecommitdiff
path: root/src/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filter.h')
-rw-r--r--src/filter.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/filter.h b/src/filter.h
index ba48424..087c9b6 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -20,22 +20,24 @@
#include <complex.h>
-struct quisk_cfFilter { // Structure to hold the static data for FIR filters
- float * dCoefs; // real filter coefficients
- complex float * cpxCoefs; // complex filter coefficients
- int nBuf; // dimension of cBuf
- int nTaps; // dimension of dSamples, cSamples, dCoefs
- int decim_index; // index of next sample for decimation
- complex float * cSamples; // storage for old samples
- complex float * ptcSamp; // next available position in cSamples
- complex float * cBuf; // auxiliary buffer for interpolation
-} ;
-
-extern int quisk_cfInterpDecim(complex float *, int, struct quisk_cfFilter *, int, int);
+struct quisk_cfFilter { // Structure to hold the static data for FIR filters
+ float *dCoefs; // real filter coefficients
+ complex float *cpxCoefs; // complex filter coefficients
+ int nBuf; // dimension of cBuf
+ int nTaps; // dimension of dSamples, cSamples, dCoefs
+ int decim_index; // index of next sample for decimation
+ complex float *cSamples; // storage for old samples
+ complex float *ptcSamp; // next available position in cSamples
+ complex float *cBuf; // auxiliary buffer for interpolation
+};
+
+extern int quisk_cfInterpDecim(complex float *, int, struct quisk_cfFilter *,
+ int, int);
extern void quisk_filt_cfInit(struct quisk_cfFilter *, float *, int);
extern void quisk_filt_destroy(struct quisk_cfFilter *);
extern void quisk_cfTune(struct quisk_cfFilter *, float);
-extern void quisk_ccfFilter(complex float *, complex float *, int, struct quisk_cfFilter *);
+extern void quisk_ccfFilter(complex float *, complex float *, int,
+ struct quisk_cfFilter *);
extern float filtP400S600[100];
extern float filtP550S750[160];