Functions | |
int | fir_calc_tapnumber (int fs, int tr_width) |
fir_instancef_t * | fir_create_lpff (int fs, int cutoff_freq, int tr_width, int blocksz) |
fir_instancef_t * | fir_create_lpff_tap (int fs, int cutoff_freq, int taps, int blocksz) |
fir_instancef_t * | fir_create_hpff (int fs, int cutoff_freq, int tr_width, int blocksz) |
fir_instancef_t * | fir_create_hpff_tap (int fs, int cutoff_freq, int taps, int blocksz) |
fir_instancef_t * | fir_create_bpff (int fs, int lower_cutfreq, int higher_cutfreq, int tr_width, int blocksz) |
fir_instancef_t * | fir_create_bpff_tap (int fs, int lower_cutfreq, int higher_cutfreq, int taps, int blocksz) |
fir_instancef_t * | fir_create_beff (int fs, int lower_cutfreq, int higher_cutfreq, int tr_width, int blocksz) |
fir_instancef_t * | fir_create_beff_tap (int fs, int lower_cutfreq, int higher_cutfreq, int taps, int blocksz) |
int | fir_get_tapnumf (fir_instancef_t *fir) |
void | fir_executef (fir_instancef_t *fir, float *input, float *output, int len) |
void | firabs_executef (fir_instancef_t *fir, float *input, float *output, int len) |
void | fir_deletef (fir_instancef_t *fir) |
int fir_calc_tapnumber | ( | int | fs, |
int | tr_width | ||
) |
Calculate FIR tap number from sampling frequency and transition band width
[in] | fs | Sampling rate of target signals. |
[in] | tr_width | Transition frequency band width. (Hz) |
fir_instancef_t * fir_create_lpff | ( | int | fs, |
int | cutoff_freq, | ||
int | tr_width, | ||
int | blocksz | ||
) |
Create FIR Low Pass Filter coefficients
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | tr_width | Transition frequency band width. (Hz) |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
fir_instancef_t * fir_create_lpff_tap | ( | int | fs, |
int | cutoff_freq, | ||
int | taps, | ||
int | blocksz | ||
) |
Create FIR Low Pass Filter coefficients with Tap size
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | taps | Tap size |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
fir_instancef_t * fir_create_hpff | ( | int | fs, |
int | cutoff_freq, | ||
int | tr_width, | ||
int | blocksz | ||
) |
Create FIR High Pass Filter coefficients
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | tr_width | Transition frequency band width. (Hz) |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
fir_instancef_t * fir_create_hpff_tap | ( | int | fs, |
int | cutoff_freq, | ||
int | taps, | ||
int | blocksz | ||
) |
Create FIR High Pass Filter coefficients with Tap size
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | taps | Tap size |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
fir_instancef_t * fir_create_bpff | ( | int | fs, |
int | lower_cutfreq, | ||
int | higher_cutfreq, | ||
int | tr_width, | ||
int | blocksz | ||
) |
Create FIR Band Pass Filter coefficients
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | tr_width | Transition frequency band width. (Hz) |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
fir_instancef_t * fir_create_bpff_tap | ( | int | fs, |
int | lower_cutfreq, | ||
int | higher_cutfreq, | ||
int | taps, | ||
int | blocksz | ||
) |
Create FIR Band Pass Filter coefficients with Tap size
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | taps | Tap size |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
fir_instancef_t * fir_create_beff | ( | int | fs, |
int | lower_cutfreq, | ||
int | higher_cutfreq, | ||
int | tr_width, | ||
int | blocksz | ||
) |
Create FIR Band Elimination Filter coefficients
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | tr_width | Transition frequency band width. (Hz) |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
fir_instancef_t * fir_create_beff_tap | ( | int | fs, |
int | lower_cutfreq, | ||
int | higher_cutfreq, | ||
int | taps, | ||
int | blocksz | ||
) |
Create FIR Band Elimination Filter coefficients with Tap size
[in] | fs | Sampling rate of target signals. |
[in] | cuttoff_freq | Cut off frequency. (Hz) |
[in] | taps | Tap size |
[in] | blocksz | Block size to execute filter calcuation in one time. (samples) |
int fir_get_tapnumf | ( | fir_instancef_t * | fir | ) |
Get tap number of created FIR filter instance
[in] | fir | Target instance of fir_instancef_t to get tap number from. |
void fir_executef | ( | fir_instancef_t * | fir, |
float * | input, | ||
float * | output, | ||
int | len | ||
) |
Execute FIR filter
[in] | fir | Instance of fir_instancef_t. |
[in] | input | float array of input data. |
[out] | output | float array of output data. |
[in] | len | Length of arrays. This size must be multiple of blocksz set by fir_create_xxx(). |
void firabs_executef | ( | fir_instancef_t * | fir, |
float * | input, | ||
float * | output, | ||
int | len | ||
) |
Execute FIR filter and calculate the avsolute value
[in] | fir | Instance of fir_instancef_t. |
[in] | input | float array of input data. |
[out] | output | float array of output data. |
[in] | len | Length of arrays. This size must be multiple of blocksz set by fir_create_xxx(). |
void fir_deletef | ( | fir_instancef_t * | fir | ) |
Delete FIR instance
[in] | fir | Instance of fir_instancef_t. |