Functions
Collaboration diagram for DSP_fir_r8_h8:

Functions

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

Detailed Description

Function Documentation

◆ DSP_fir_r8_h8()

void DSP_fir_r8_h8 ( const short *restrict  x,
const short *restrict  h,
short *restrict  r,
int  nr 
)
Computes a real FIR filter (direct-form) using 8 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.                                                    

 @param  x   =  Input array [nr+8-1 elements]
 @param  h   =  Coeff array [8 elements]      
 @param  r   =  Output array [nr elements] 
 @param  nr  =  Number of output samples       
Algorithm:
DSP_fir_r8_h8_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.

nr >= 4; nr % 4 == 0.

nh == 8.
Implementation Notes:
Endian Support: The code supports little endian modes.
Interruptibility: The code is interruptible.

Copyright 2022, Texas Instruments Incorporated