JLChen
2021-01-04 ed86fe7ed952bb2151aac8841134246bbde152c9
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);