|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Signed 16-bit IIR single-pole filter with fraction saving. More...
#include <filter.h>
Data Fields | |
| int16_t | y_prev |
| Previous filter output. | |
| uint16_t | alpha |
| Filter time constant, 0-1 scaled by (1 << 16) | |
| uint16_t | error |
| Accumulated fractional error from the previous step. | |
Signed 16-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.
| uint16_t iir_filter_single_pole_s16::alpha |
Filter time constant, 0-1 scaled by (1 << 16)
| uint16_t iir_filter_single_pole_s16::error |
Accumulated fractional error from the previous step.
| int16_t iir_filter_single_pole_s16::y_prev |
Previous filter output.