dsp16_filt_interpolation_coefsort.c File Reference


Detailed Description

Generic 16-bit coefficients sorting function for the interpolation filter.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file dsp16_filt_interpolation_coefsort.c.

#include "dsp.h"

Go to the source code of this file.

Functions

void dsp16_filt_interpolation_coefsort (dsp16_t *fir_coefs, int n_tap, int interpolation_ratio)
 This function resort the coefficients of a FIR filter to be used with the function dsp16_filt_interpolation.
static int get_new_index (int cur_index, int n_tap, int interpolation_ratio)


Function Documentation

static int get_new_index ( int  cur_index,
int  n_tap,
int  interpolation_ratio 
) [inline, static]

Definition at line 53 of file dsp16_filt_interpolation_coefsort.c.

Referenced by dsp16_filt_interpolation_coefsort().

00054 {
00055   return n_tap * cur_index + (1 - n_tap * interpolation_ratio) * (cur_index / interpolation_ratio);
00056 }


Generated on Fri Feb 19 02:23:18 2010 for AVR32 UC3 - EVK1104 DSPLib Demo Documentation by  doxygen 1.5.5