|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include "dsps_mul.h"Go to the source code of this file.
Functions | |
| esp_err_t | dsps_mul_s16_ansi (const int16_t *input1, const int16_t *input2, int16_t *output, int len, int step1, int step2, int step_out, int shift) |
| Multiply two arrays. | |
| esp_err_t dsps_mul_s16_ansi | ( | const int16_t * | input1, |
| const int16_t * | input2, | ||
| int16_t * | output, | ||
| int | len, | ||
| int | step1, | ||
| int | step2, | ||
| int | step_out, | ||
| int | shift ) |
Multiply two arrays.
The function multiply one input array to another and store result to other array out[i*step_out] = input1[i*step1] * input2[i*step2]; i=[0..len) The implementation use ANSI C and could be compiled and run on any platform
| [in] | input1 | input array 1 |
| [in] | input2 | input array 2 |
| output | output array | |
| len | amount of operations for arrays | |
| step1 | step over input array 1 (by default should be 1) | |
| step2 | step over input array 2 (by default should be 1) | |
| step_out | step over output array (by default should be 1) | |
| shift | output shift after multiplication (by default should be 15) |
Definition at line 17 of file dsps_mul_s16_ansi.c.
References ESP_ERR_DSP_PARAM_OUTOFRANGE, and ESP_OK.
Referenced by microphone_read_task(), and microphone_read_task().