|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Signed 32-bit IIR single-pole filter with fraction saving. More...
#include <filter.h>
Data Fields | |
| int32_t | y_prev |
| Previous filter output. | |
| uint32_t | alpha |
| Filter time constant, 0-1 scaled by (1 << 32) | |
| uint32_t | error |
| Accumulated fractional error from the previous step. | |
Signed 32-bit IIR single-pole filter with fraction saving.
Fraction saving is a noise shaping method that ensures that the output of a DC input eventually equals that input.
| uint32_t iir_filter_single_pole_s32::alpha |
Filter time constant, 0-1 scaled by (1 << 32)
| uint32_t iir_filter_single_pole_s32::error |
Accumulated fractional error from the previous step.
| int32_t iir_filter_single_pole_s32::y_prev |
Previous filter output.