![]() |
![]() |
Collaboration diagram for DSP_fir_r8_h8:
|
| void | DSP_fir_r8_h8 (const short *restrict x, const short *restrict h, short *restrict r, int nr) |
| void DSP_fir_r8_h8 | ( | const short *restrict | x, | |
| const short *restrict | h, | |||
| short *restrict | r, | |||
| int | nr | |||
| ) |
Computes a real FIR filter (direct-form) using 8 coefficients stored in vector h. The real data input is stored in vector x. The filter output result is stored in vector r. Input data and filter taps are 16-bit, with intermediate values kept at 32-bit precision. Filter taps are expected in Q15 format.
| x | = Input array [nr+8-1 elements] | |
| h | = Coeff array [8 elements] | |
| r | = Output array [nr elements] | |
| nr | = Number of output samples |