Collaboration diagram for DSP_fir_r8_h16:
void | DSP_fir_r8_h16 (const short *restrict x, const short *restrict h, short *restrict r, int nr) |
void DSP_fir_r8_h16 | ( | const short *restrict | x, | |
const short *restrict | h, | |||
short *restrict | r, | |||
int | nr | |||
) |
Computes a real FIR filter (direct-form) using 16 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+16-1 elements] | |
h | = Coeff array [16 elements] | |
r | = Output array [nr elements] | |
nr | = Number of output samples |