DSP_fir_r4
[Filtering and convolution]

Collaboration diagram for DSP_fir_r4:


Detailed Description

void DSP_fir_r4 (const short *restrict x, const short *restrict h, short *restrict r, int nh, int nr)


Function Documentation

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.

Parameters:
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
Algorithm:
DSP_fir_r4_cn.c is the natural C equivalent of the optimized intrinsic C code without restrictions. Note that the intrinsic C code is optimized and restrictions may apply.
Assumptions:
Arrays x, h, and r do not overlap.
x, h and r are double word aligned.
nr >= 4; nr % 4 == 0.
nh >= 4; nh % 4 == 0.
Implementation Notes:
Endian Support: The code supports both big and little endian modes. Interruptibility: The code is interruptible


Copyright 2014, Texas Instruments Incorporated