FilterGen  1.0.0
A library to design digital filters in embedded systems.
dh_filter_data Struct Reference

#include <dh/filter-types.h>

Public Attributes

double * inputs
 
double * coefficients_in
 
double * outputs
 
double * coefficients_out
 
char * buffer
 
double current_value
 
size_t buffer_length
 
size_t number_coefficients_in
 
size_t number_coefficients_out
 
size_t current_input_index
 
size_t current_output_index
 
bool initialized
 
bool buffer_needs_cleanup
 

Detailed Description

The interal data for a filter.

Member Data Documentation

◆ buffer

char* dh_filter_data::buffer

Pointer to the allocated buffer.

◆ buffer_length

size_t dh_filter_data::buffer_length

Size of the buffer.

◆ buffer_needs_cleanup

bool dh_filter_data::buffer_needs_cleanup

If the buffer needs to be freed during free.

◆ coefficients_in

double* dh_filter_data::coefficients_in

Pointer to the array with the feedforward coefficients.

◆ coefficients_out

double* dh_filter_data::coefficients_out

Pointer to the array with the feedback coefficients.

◆ current_input_index

size_t dh_filter_data::current_input_index

Start index for the circular input buffer.

◆ current_output_index

size_t dh_filter_data::current_output_index

Start index for the circular output buffer.

◆ current_value

double dh_filter_data::current_value

Current output value.

◆ initialized

bool dh_filter_data::initialized

If the filter was initialized. Relevant for low pass filters.

◆ inputs

double* dh_filter_data::inputs

Pointer to the array of the last inputs. Used as circular buffer.

◆ number_coefficients_in

size_t dh_filter_data::number_coefficients_in

Number of elements in inputs and coefficients_in.

◆ number_coefficients_out

size_t dh_filter_data::number_coefficients_out

Number of elements in outputs and coefficients_out.

◆ outputs

double* dh_filter_data::outputs

Pointer to the array of the last outputs. Used as circular buffer.


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