filt_dsp16_lpfirdesign.c File Reference


Detailed Description

Generic 16-bit lowpass FIR filter design function.

This file contains the code of the lowpass FIR filter design.

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

Definition in file filt_dsp16_lpfirdesign.c.

#include "dsp.h"

Go to the source code of this file.

Defines

#define DSP16_MUL_TO_DSP32(num1, num2)
#define DSP32_DIV_TO_DSP16(num1, num2)
#define Max(a, b)   (((a) > (b)) ? (a) : (b))

Functions

void dsp16_filt_lpfirdesign (dsp16_t *c, int fc, int fs, int order, dsp16_win_fct_t dsp16_win_fct, dsp_filt_design_options_t options)
 16-bit fixed point version of the low-pass FIR filter design.


Define Documentation

#define DSP16_MUL_TO_DSP32 ( num1,
num2   ) 

Value:

((DSP32_QB > DSP16_QB*2)? \
  ((((S32) (num1)) * ((S32) (num2))) << (DSP32_QB - DSP16_QB*2)) \
  :((((S32) (num1)) * ((S32) (num2))) >> (DSP16_QB*2 - DSP32_QB)))

Definition at line 58 of file filt_dsp16_lpfirdesign.c.

Referenced by dsp16_filt_lpfirdesign().

#define DSP32_DIV_TO_DSP16 ( num1,
num2   ) 

Value:

((DSP32_QB > DSP16_QB*2)? \
  (((num1) >> (DSP32_QB - DSP16_QB*2)) / ((S32) (num2))) \
  :(((num1) << (DSP16_QB*2 - DSP32_QB)) / ((S32) (num2))))

Definition at line 63 of file filt_dsp16_lpfirdesign.c.

Referenced by dsp16_filt_lpfirdesign().

#define Max ( a,
 )     (((a) > (b)) ? (a) : (b))


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