Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
iir_filter_single_pole_s16 Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ alpha

uint16_t iir_filter_single_pole_s16::alpha

Filter time constant, 0-1 scaled by (1 << 16)

◆ error

uint16_t iir_filter_single_pole_s16::error

Accumulated fractional error from the previous step.

◆ y_prev

int16_t iir_filter_single_pole_s16::y_prev

Previous filter output.


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