iLLD_TC27xD  1.0
Low-pass Filter: Type PT1
Collaboration diagram for Low-pass Filter: Type PT1:

Functions

IFX_EXTERN void Ifx_LowPassPt1_init (Ifx_LowPassPt1 *filter, const Ifx_LowPassPt1_Config *config)
 Set the low pass filter configuration. More...
 
IFX_INLINE void Ifx_LowPassPt1_reset (Ifx_LowPassPt1 *filter)
 Reset the internal filter variable. More...
 
IFX_EXTERN float32 Ifx_LowPassPt1_do (Ifx_LowPassPt1 *filter, float32 input)
 Execute the low pass filter. More...
 

Detailed Description

This module implements a PT1 low pass filter. http://de.wikipedia.org/wiki/PT1-Glied

Formula:
$ y_k = y_{k-1} + a * x_k - b * y_{k-1} $
with $(T^* = \frac{T_s}{T+T_s})$, $(a = K*T^*)$, $(b = T^*)$ with $(T_s: Sample time)$, $(K: Gain)$, $(T = \frac{1}{\omega_0})$

Function Documentation

IFX_EXTERN float32 Ifx_LowPassPt1_do ( Ifx_LowPassPt1 filter,
float32  input 
)

Execute the low pass filter.

Parameters
filterSpecifies PT1 filter.
inputSpecifies the filter input.
Returns
Returns the filter output

Definition at line 55 of file Ifx_LowPassPt1.c.

IFX_EXTERN void Ifx_LowPassPt1_init ( Ifx_LowPassPt1 filter,
const Ifx_LowPassPt1_Config config 
)

Set the low pass filter configuration.

This function sets the low pass filter configuration and reset the filter output.

Parameters
filterSpecifies PT1 filter.
configSpecifies the PT1 filter configuration.
Returns
None

Definition at line 38 of file Ifx_LowPassPt1.c.

Referenced by IfxGpt12_IncrEnc_init().

IFX_INLINE void Ifx_LowPassPt1_reset ( Ifx_LowPassPt1 filter)

Reset the internal filter variable.

Parameters
filterSpecifies PT1 filter.

Definition at line 74 of file Ifx_LowPassPt1.h.