|
ESP-IDF Firmware
Firmware architecture and call graph
|
Go to the source code of this file.
Macros | |
| #define | ROUNDING_VALUE 0x7fff |
Functions | |
| esp_err_t | dsps_fird_init_s16 (fir_s16_t *fir, int16_t *coeffs, int16_t *delay, int16_t coeffs_len, int16_t decim, int16_t start_pos, int16_t shift) |
| initialize structure for 16 bit Decimation FIR filter Function initialize structure for 16 bit signed fixed point FIR filter with decimation The implementation use ANSI C and could be compiled and run on any platform | |
| esp_err_t | dsps_fird_s16_aexx_free (fir_s16_t *fir) |
| support arrays freeing function | |
| esp_err_t | dsps_16_array_rev (int16_t *arr, int16_t len) |
| Array reversal. | |
| #define ROUNDING_VALUE 0x7fff |
Definition at line 12 of file dsps_fird_init_s16.c.
Referenced by dsps_fird_init_s16(), and dsps_firmr_init_s16().
| esp_err_t dsps_16_array_rev | ( | int16_t * | arr, |
| int16_t | len ) |
Array reversal.
Function reverses 16-bit long array members for the purpose of the dsps_fird_s16_aes3 implementation The function has to be called either during the fir struct initialization or every time the coefficients change
| arr | pointer to the array to be reversed |
| len | length of the array to be reversed |
Definition at line 146 of file dsps_fird_init_s16.c.
References ESP_OK.
| esp_err_t dsps_fird_init_s16 | ( | fir_s16_t * | fir, |
| int16_t * | coeffs, | ||
| int16_t * | delay, | ||
| int16_t | coeffs_len, | ||
| int16_t | decim, | ||
| int16_t | start_pos, | ||
| int16_t | shift ) |
initialize structure for 16 bit Decimation FIR filter Function initialize structure for 16 bit signed fixed point FIR filter with decimation 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 |
| coeffs_len | FIR filter length. Length of coeffs and delay arrays. |
| decim | decimation factor. |
| start_pos | initial value of decimation counter. Must be [0..d) |
| shift | shift position of the result |
Definition at line 14 of file dsps_fird_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, ESP_ERR_DSP_ARRAY_NOT_ALIGNED, ESP_ERR_DSP_INVALID_LENGTH, ESP_ERR_DSP_PARAM_OUTOFRANGE, ESP_OK, fir_s16_s::free_status, memalign, fir_s16_s::pos, fir_s16_s::rounding_buff, fir_s16_s::rounding_val, ROUNDING_VALUE, and fir_s16_s::shift.
support arrays freeing function
Function frees all the arrays, which were created during the initialization of the fir_s16_t structure
| fir | pointer to fir filter structure, that must be initialized before |
Definition at line 119 of file dsps_fird_init_s16.c.
References fir_s16_s::coeffs, fir_s16_s::delay, ESP_OK, fir_s16_s::free_status, and fir_s16_s::rounding_buff.
Referenced by dsps_resampler_mr_free().