![]() |
![]() |
Collaboration diagram for DSP_fir_r4:
|
| void | DSP_fir_r4 (const short *restrict x, const short *restrict h, short *restrict r, int nh, int nr) |
| void DSP_fir_r4 | ( | const short *restrict | x, | |
| const short *restrict | h, | |||
| short *restrict | r, | |||
| int | nh, | |||
| int | nr | |||
| ) |
This function implements an IIR filter, with a number of biquad stages given by nCoefs / 4. It accepts a single sample of input and returns a single sample of output. Coefficients are expected to be in the range [-2.0, 2.0) with Q14 precision.
| x | = Input array [nr+nh-1 elements] | |
| h | = Coeff array [nh elements] | |
| r | = Output array [nr elements] | |
| nh | = Number of coefficients | |
| nr | = Number of output samples |