ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dsps_biquad_gen.h
Go to the documentation of this file.
1// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef _dsps_biquad_gen_H_
16#define _dsps_biquad_gen_H_
17
18#include "dsp_err.h"
19
20#ifdef __cplusplus
21extern "C"
22{
23#endif
24
25// Common rules for all generated coefficients.
26// The coefficients placed to the array as follows:
27// coeffs[0] = b0;
28// coeffs[1] = b1;
29// coeffs[2] = b2;
30// coeffs[3] = a1;
31// coeffs[4] = a2;
32// a0 - are not placed and expected always as == 1
33
47esp_err_t dsps_biquad_gen_lpf_f32(float *coeffs, float f, float qFactor);
48
63esp_err_t dsps_biquad_gen_hpf_f32(float *coeffs, float f, float qFactor);
64
79esp_err_t dsps_biquad_gen_bpf_f32(float *coeffs, float f, float qFactor);
80
95esp_err_t dsps_biquad_gen_bpf0db_f32(float *coeffs, float f, float qFactor);
96
112esp_err_t dsps_biquad_gen_notch_f32(float *coeffs, float f, float gain, float qFactor);
113
128esp_err_t dsps_biquad_gen_allpass360_f32(float *coeffs, float f, float qFactor);
129
144esp_err_t dsps_biquad_gen_allpass180_f32(float *coeffs, float f, float qFactor);
145
160esp_err_t dsps_biquad_gen_peakingEQ_f32(float *coeffs, float f, float qFactor);
161
177esp_err_t dsps_biquad_gen_lowShelf_f32(float *coeffs, float f, float gain, float qFactor);
178
194esp_err_t dsps_biquad_gen_highShelf_f32(float *coeffs, float f, float gain, float qFactor);
195
196#ifdef __cplusplus
197}
198#endif
199
200#endif // _dsps_biquad_gen_H_
esp_err_t dsps_biquad_gen_peakingEQ_f32(float *coeffs, float f, float qFactor)
peak IIR filter coefficients
esp_err_t dsps_biquad_gen_bpf0db_f32(float *coeffs, float f, float qFactor)
0 dB BPF IIR filter coefficients
esp_err_t dsps_biquad_gen_notch_f32(float *coeffs, float f, float gain, float qFactor)
Notch IIR filter coefficients.
esp_err_t dsps_biquad_gen_hpf_f32(float *coeffs, float f, float qFactor)
HPF IIR filter coefficients.
esp_err_t dsps_biquad_gen_allpass180_f32(float *coeffs, float f, float qFactor)
Allpass 180 degree IIR filter coefficients.
esp_err_t dsps_biquad_gen_lowShelf_f32(float *coeffs, float f, float gain, float qFactor)
low shelf IIR filter coefficients
esp_err_t dsps_biquad_gen_bpf_f32(float *coeffs, float f, float qFactor)
BPF IIR filter coefficients.
esp_err_t dsps_biquad_gen_lpf_f32(float *coeffs, float f, float qFactor)
LPF IIR filter coefficients Coefficients for low pass 2nd order IIR filter (bi-quad) The implementati...
esp_err_t dsps_biquad_gen_allpass360_f32(float *coeffs, float f, float qFactor)
Allpass 360 degree IIR filter coefficients.
esp_err_t dsps_biquad_gen_highShelf_f32(float *coeffs, float f, float gain, float qFactor)
high shelf IIR filter coefficients
int esp_err_t
Definition esp_err.h:21
float coeffs[256]
Definition test_fir.c:14