Collaboration diagram for DSP_fir_cplx:
void | DSP_fir_cplx (const short *restrict x, const short *restrict h, short *restrict r, int nh, int nr) |
void DSP_fir_cplx | ( | const short *restrict | x, | |
const short *restrict | h, | |||
short *restrict | r, | |||
int | nh, | |||
int | nr | |||
) |
This complex FIR computes nr complex output samples using nh complex coefficients. It operates on 16-bit data with a 32-bit accumulate. Each array consists of an even and odd term with even terms representing the real part of the element and the odd terms the imaginary part. The pointer to input array x must point to the (nh)th complex sample, i.e. element 2*(nh-1), upon entry to the function. The coefficients are expected in normal order.
x | Complex input data. x must point to x[2*(nh-1)]. | |
h | Complex coefficients (in normal order). h must point to h[2*nh]. | |
r | Complex output data. r must point to r[2*nr]. | |
nh | Number of complex coefficients. | |
nr | Number of complex output samples. |