|
FilterGen
1.0.0
A library to design digital filters in embedded systems.
|
#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 |
The interal data for a filter.
| char* dh_filter_data::buffer |
Pointer to the allocated buffer.
| size_t dh_filter_data::buffer_length |
Size of the buffer.
| bool dh_filter_data::buffer_needs_cleanup |
If the buffer needs to be freed during free.
| double* dh_filter_data::coefficients_in |
Pointer to the array with the feedforward coefficients.
| double* dh_filter_data::coefficients_out |
Pointer to the array with the feedback coefficients.
| size_t dh_filter_data::current_input_index |
Start index for the circular input buffer.
| size_t dh_filter_data::current_output_index |
Start index for the circular output buffer.
| double dh_filter_data::current_value |
Current output value.
| bool dh_filter_data::initialized |
If the filter was initialized. Relevant for low pass filters.
| double* dh_filter_data::inputs |
Pointer to the array of the last inputs. Used as circular buffer.
| size_t dh_filter_data::number_coefficients_in |
Number of elements in inputs and coefficients_in.
| size_t dh_filter_data::number_coefficients_out |
Number of elements in outputs and coefficients_out.
| double* dh_filter_data::outputs |
Pointer to the array of the last outputs. Used as circular buffer.