|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include "dsps_fir.h"#include "malloc.h"#include <string.h>#include "dsp_tests.h"#include "dsp_common.h"Go to the source code of this file.
Macros | |
| #define | ROUNDING_VALUE 0x7fff |
Functions | |
| esp_err_t | dsps_firmr_init_s16 (fir_s16_t *fir, int16_t *coeffs, int16_t *delay, int16_t coeffs_len, int16_t interp, int16_t decim, int16_t start_pos, int16_t shift) |
| initialize structure for multi-rate FIR filter Function initialize structure for 16 bit signed fixed point multi-rate FIR filter The implementation use ANSI C and could be compiled and run on any platform | |
| #define ROUNDING_VALUE 0x7fff |
Definition at line 13 of file dsps_firmr_init_s16.c.
| esp_err_t dsps_firmr_init_s16 | ( | fir_s16_t * | fir, |
| int16_t * | coeffs, | ||
| int16_t * | delay, | ||
| int16_t | length, | ||
| int16_t | interp, | ||
| int16_t | decim, | ||
| int16_t | start_pos, | ||
| int16_t | shift ) |
initialize structure for multi-rate FIR filter Function initialize structure for 16 bit signed fixed point multi-rate 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 be length N |
| length | FIR filter length. Length of coeffs and delay arrays. |
| interp | interpolation factor. |
| decim | decimation factor. |
| start_pos | initial value of decimation counter. Must be [0..decim) |
| shift | shift of accumulator value to store in the output array. |
Definition at line 15 of file dsps_firmr_init_s16.c.
References coeffs, fir_s16_s::coeffs, fir_s16_s::coeffs_len, fir_s16_s::d_pos, fir_s16_s::decim, delay, fir_s16_s::delay, fir_s16_s::delay_size, ESP_ERR_DSP_INVALID_LENGTH, ESP_ERR_DSP_PARAM_OUTOFRANGE, ESP_OK, fir_s16_s::free_status, fir_s16_s::interp, fir_s16_s::interp_pos, memalign, fir_s16_s::pos, fir_s16_s::rounding_val, ROUNDING_VALUE, fir_s16_s::shift, and fir_s16_s::start_pos.
Referenced by dsps_resampler_mr_init().