DSP_fir_r8_h16
[Filtering and convolution]

Collaboration diagram for DSP_fir_r8_h16:


Detailed Description

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


Function Documentation

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.

Parameters:
x = Input array [nr+16-1 elements]
h = Coeff array [16 elements]
r = Output array [nr elements]
nr = Number of output samples
Algorithm:
DSP_fir_r8_h16_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 must be double word aligned.
nr >= 4; nr % 4 == 0.
nh == 16.
Implementation Notes:
Endian Support: The code supports both big and little endian modes. Interruptibility: The code is interruptible


Copyright 2014, Texas Instruments Incorporated