ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dsps_resample_mr_s Struct Reference

Data struct of f32 multi-rate resampler. More...

#include <dsps_resampler.h>

Data Fields

void * filter
float samplerate_factor
int16_t decim_c
int16_t decim_f
int16_t active_decim
float decim_avg_in
float decim_avg_out
int32_t(* dsps_firmr )(void *fir, void *input, void *output, int32_t length)
int32_t fixed_point

Detailed Description

Data struct of f32 multi-rate resampler.

This structure is used by a resampler internally. A user should access this structure only in case of extensions for the DSP Library. To initialize the resampler, use the dsps_resampler_mr_init() function. To execute the resampler, use the dsps_resampler_mr_exec() function. To free the resampler, use the dsps_resampler_mr_free() function.

Definition at line 27 of file dsps_resampler.h.

Field Documentation

◆ active_decim

int16_t dsps_resample_mr_s::active_decim

Active decimation factor

Definition at line 32 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), and dsps_resampler_mr_init().

◆ decim_avg_in

float dsps_resample_mr_s::decim_avg_in

Average decimation factor for input

Definition at line 33 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), and dsps_resampler_mr_init().

◆ decim_avg_out

float dsps_resample_mr_s::decim_avg_out

Average decimation factor for output

Definition at line 34 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), and dsps_resampler_mr_init().

◆ decim_c

int16_t dsps_resample_mr_s::decim_c

Decimation factor for ceil

Definition at line 30 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), and dsps_resampler_mr_init().

◆ decim_f

int16_t dsps_resample_mr_s::decim_f

Decimation factor for floor

Definition at line 31 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), and dsps_resampler_mr_init().

◆ dsps_firmr

int32_t(* dsps_resample_mr_s::dsps_firmr) (void *fir, void *input, void *output, int32_t length)

Pointer to FIR filter function

Definition at line 35 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), and dsps_resampler_mr_init().

◆ filter

void* dsps_resample_mr_s::filter

FIR filter structure

Definition at line 28 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), dsps_resampler_mr_free(), and dsps_resampler_mr_init().

◆ fixed_point

int32_t dsps_resample_mr_s::fixed_point

Fixed point flag

Definition at line 36 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), dsps_resampler_mr_free(), and dsps_resampler_mr_init().

◆ samplerate_factor

float dsps_resample_mr_s::samplerate_factor

Sample rate factor

Definition at line 29 of file dsps_resampler.h.

Referenced by dsps_resampler_mr_exec(), and dsps_resampler_mr_init().


The documentation for this struct was generated from the following file: