JLChen
2020-12-10 a8c5f79b0d93adfa7f23601dd0fee30edc14f0d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * @file rem_fir.h  Finite Impulse Response (FIR) functions
 *
 * Copyright (C) 2010 Creytiv.com
 */
 
/** Defines the fir filter state */
struct fir {
    int16_t history[256];  /**< Previous samples */
    unsigned index;        /**< Sample index */
};
 
void fir_reset(struct fir *fir);
void fir_filter(struct fir *fir, int16_t *outv, const int16_t *inv, size_t inc,
        unsigned ch, const int16_t *tapv, size_t tapc);