Microchip® Advanced Software Framework

dsp_resampling_t Struct Reference

This structure is used to store the context of a resampling process.

#include <dsp_resampling.h>

Data Fields

int buffer_size
 The size in sample of this buffer. More...
 
dsp_resampling_context_tcontext
 Context of the process. More...
 
int current_buffer_size
 The output buffer size. More...
 
int decimation_factor
 The decimation factor used for the resampling process. More...
 
int filter_order
 The actual order of the filter. More...
 
void * fir_coefs
 An array to store the FIR coefficients of the filter. More...
 
int fs
 The sample rate of the input buffer. More...
 
int interpolation_factor
 The interpolation factor used for the resampling process. More...
 
void * last_samples
 A buffer to store the current buffer + some previous samples. More...
 
bool link_required
 If a clean link between to output buffer is required. More...
 
int nb_channels
 The number of channels. More...
 

int dsp_resampling_t::buffer_size
dsp_resampling_context_t* dsp_resampling_t::context

Context of the process.

Referenced by dsp16_resampling_compute(), dsp16_resampling_link(), and dsp16_resampling_setup().

int dsp_resampling_t::current_buffer_size
int dsp_resampling_t::decimation_factor

The decimation factor used for the resampling process.

Referenced by dsp16_resampling_compute(), dsp16_resampling_get_output_max_buffer_size(), dsp16_resampling_link(), and dsp16_resampling_setup().

int dsp_resampling_t::filter_order

The actual order of the filter.

A polyphase filter is used, therefore, this order is equal to desired the order of the filter * the interpolation factor.

Referenced by dsp16_resampling_compute(), dsp16_resampling_get_output_max_buffer_size(), dsp16_resampling_link(), and dsp16_resampling_setup().

void* dsp_resampling_t::fir_coefs

An array to store the FIR coefficients of the filter.

Referenced by dsp16_resampling_compute(), and dsp16_resampling_setup().

int dsp_resampling_t::fs

The sample rate of the input buffer.

Referenced by dsp16_resampling_setup().

int dsp_resampling_t::interpolation_factor

The interpolation factor used for the resampling process.

Referenced by dsp16_resampling_compute(), dsp16_resampling_get_output_max_buffer_size(), dsp16_resampling_link(), and dsp16_resampling_setup().

void* dsp_resampling_t::last_samples

A buffer to store the current buffer + some previous samples.

Referenced by dsp16_resampling_compute(), dsp16_resampling_link(), and dsp16_resampling_setup().

bool dsp_resampling_t::link_required

If a clean link between to output buffer is required.

Referenced by dsp16_resampling_compute(), dsp16_resampling_link(), and dsp16_resampling_setup().

int dsp_resampling_t::nb_channels

The number of channels.

Referenced by dsp16_resampling_link(), and dsp16_resampling_setup().