DSP_firlms2
[Adaptive filtering]

Collaboration diagram for DSP_firlms2:


Detailed Description

int DSP_firlms2 (short *restrict h, short *restrict x, short b, int nh)


Function Documentation

int DSP_firlms2 ( short *restrict  h,
short *restrict  x,
short  b,
int  nh 
)

The Least Mean Square Adaptive Filter computes an update of all nh coefficients by adding the weighted error times the inputs to the original coefficients. The input array includes the last nh inputs followed by a new single sample input. The coefficient array includes nh coefficients.

Parameters:
h = Coefficient Array
x = Input array
b = Error from previous FIR
nh = Number of coefficients. Must be multiple of 4
Algorithm:
DSP_firlms2_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:
This routine assumes 16-bit input and output.
The number of coefficients nh must be a multiple of 4.
Implementation notes:
Endian Support: The code supports both big and little endian modes.
Interruptibility: The code is interruptible.


Copyright 2014, Texas Instruments Incorporated