This file contains the code of the lowpass FIR filter design.
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 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, | |||
b | ) | (((a) > (b)) ? (a) : (b)) |
Definition at line 55 of file filt_dsp16_lpfirdesign.c.
Referenced by dsp16_filt_lpfirdesign(), dsp16_gen_saw(), dsp16_resampling_setup(), and dsp32_gen_saw().