Instrument Neutral Distributed Interface INDI  1.9.5
Functions
filters.c File Reference
#include "dsp.h"

Go to the source code of this file.

Functions

void dsp_filter_squarelaw (dsp_stream_p stream)
 A square law filter. More...
 
void dsp_filter_calc_coefficients (double SamplingFrequency, double LowFrequency, double HighFrequency, double *CF, double *R, double *K)
 
void dsp_filter_lowpass (dsp_stream_p stream, double SamplingFrequency, double Frequency)
 A low pass filter. More...
 
void dsp_filter_highpass (dsp_stream_p stream, double SamplingFrequency, double Frequency)
 A high pass filter. More...
 
void dsp_filter_bandreject (dsp_stream_p stream, double SamplingFrequency, double LowFrequency, double HighFrequency)
 A band reject filter. More...
 
void dsp_filter_bandpass (dsp_stream_p stream, double SamplingFrequency, double LowFrequency, double HighFrequency)
 A band pass filter. More...
 

Function Documentation

◆ dsp_filter_bandpass()

void dsp_filter_bandpass ( dsp_stream_p  stream,
double  samplingfrequency,
double  LowFrequency,
double  HighFrequency 
)

A band pass filter.

Parameters
streamthe input stream.
samplingfrequencythe sampling frequency of the input stream.
LowFrequencythe high-pass cutoff frequency of the filter.
HighFrequencythe low-pass cutoff frequency of the filter.

Definition at line 107 of file filters.c.

◆ dsp_filter_bandreject()

void dsp_filter_bandreject ( dsp_stream_p  stream,
double  samplingfrequency,
double  LowFrequency,
double  HighFrequency 
)

A band reject filter.

Parameters
streamthe input stream.
samplingfrequencythe sampling frequency of the input stream.
LowFrequencythe high-pass cutoff frequency of the filter.
HighFrequencythe low-pass cutoff frequency of the filter.

Definition at line 77 of file filters.c.

◆ dsp_filter_calc_coefficients()

void dsp_filter_calc_coefficients ( double  SamplingFrequency,
double  LowFrequency,
double  HighFrequency,
double *  CF,
double *  R,
double *  K 
)

Definition at line 37 of file filters.c.

◆ dsp_filter_highpass()

void dsp_filter_highpass ( dsp_stream_p  stream,
double  samplingfrequency,
double  frequency 
)

A high pass filter.

Parameters
streamthe input stream.
samplingfrequencythe sampling frequency of the input stream.
frequencythe cutoff frequency of the filter.

Definition at line 61 of file filters.c.

◆ dsp_filter_lowpass()

void dsp_filter_lowpass ( dsp_stream_p  stream,
double  samplingfrequency,
double  frequency 
)

A low pass filter.

Parameters
streamthe input stream.
samplingfrequencythe sampling frequency of the input stream.
frequencythe cutoff frequency of the filter.

Definition at line 45 of file filters.c.

◆ dsp_filter_squarelaw()

void dsp_filter_squarelaw ( dsp_stream_p  stream)

A square law filter.

Parameters
streamthe input stream.

Definition at line 21 of file filters.c.