|
ESP-IDF Firmware
Firmware architecture and call graph
|
Go to the source code of this file.
Functions | |
| esp_err_t | dsps_fir_init_f32 (fir_f32_t *fir, float *coeffs, float *delay, int coeffs_len) |
| initialize structure for 32 bit FIR filter | |
| esp_err_t | dsps_fir_f32_free (fir_f32_t *fir) |
| support arrays freeing function | |
support arrays freeing function
Function frees the delay line arrays, if it was allocated by the init functions.
| fir | pointer to fir filter structure, that must be initialized before |
Definition at line 60 of file dsps_fir_init_f32.c.
References fir_f32_s::delay, ESP_OK, and fir_f32_s::use_delay.
Referenced by dsps_resampler_mr_free().
initialize structure for 32 bit FIR filter
Function initialize structure for 32 bit floating point FIR filter The implementation use ANSI C and could be compiled and run on any platform
| fir | pointer to fir filter structure, that must be preallocated |
| coeffs | array with FIR filter coefficients. Must be length N |
| delay | array for FIR filter delay line. Must have a length = coeffs_len + 4 |
| coeffs_len | FIR filter length. Length of coeffs array. For esp32s3 length should be divided by 4 and aligned to 16. |
Definition at line 19 of file dsps_fir_init_f32.c.
References coeffs, fir_f32_s::coeffs, delay, fir_f32_s::delay, ESP_ERR_DSP_ARRAY_NOT_ALIGNED, ESP_ERR_DSP_INVALID_LENGTH, ESP_OK, memalign, fir_f32_s::N, fir_f32_s::pos, and fir_f32_s::use_delay.
Referenced by test_fir().