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