Go to the documentation of this file.
339 #ifdef __TMS320C28XX_CLA__
340 #pragma FUNC_ALWAYS_INLINE(FILTER_SO_run)
341 #endif // __TMS320C28XX_CLA__
367 obj->
x1 = inputValue;
445 obj->
x1 = inputValue;
715 #endif // FILTER_SO_H
float32_t b1
the numerator filter coefficient value for z^(-1)
Definition: filter_so.h:79
float32_t x2
the input value at time sample n=-2
Definition: filter_so.h:82
float float32_t
Definition: sfra_f32.h:42
void FILTER_SO_setNumCoeffs(FILTER_SO_Handle handle, const float32_t b0, const float32_t b1, const float32_t b2)
Sets the second-order filter numerator coefficients.
static void FILTER_SO_set_b2(FILTER_SO_Handle handle, const float32_t b2)
Sets the second-order filter numerator coefficient b2.
Definition: filter_so.h:548
static float32_t FILTER_SO_get_a2(FILTER_SO_Handle handle)
Gets the second-order filter denominator coefficient a2.
Definition: filter_so.h:121
void FILTER_SO_getInitialConditions(FILTER_SO_Handle handle, float32_t *px1, float32_t *px2, float32_t *py1, float32_t *py2)
Gets the initial conditions of the second-order filter.
FILTER_SO_Handle FILTER_SO_init(void *pMemory, const size_t numBytes)
Initializes the second-order filter.
static float32_t FILTER_SO_get_x2(FILTER_SO_Handle handle)
Gets the second-order filter input value at time sample n=-2.
Definition: filter_so.h:206
void FILTER_SO_setInitialConditions(FILTER_SO_Handle handle, const float32_t x1, const float32_t x2, const float32_t y1, const float32_t y2)
Sets the initial conditions of the second-order filter.
static void FILTER_SO_set_x2(FILTER_SO_Handle handle, const float32_t x2)
Sets the second-order filter input value at time sample n=-2.
Definition: filter_so.h:590
float32_t y2
the output value at time sample n=-2
Definition: filter_so.h:84
float32_t a1
the denominator filter coefficient value for z^(-1)
Definition: filter_so.h:76
void FILTER_SO_setDenCoeffs(FILTER_SO_Handle handle, const float32_t a1, const float32_t a2)
Sets the second-order filter denominator coefficients.
void FILTER_SO_getDenCoeffs(FILTER_SO_Handle handle, float32_t *pa1, float32_t *pa2)
Gets the second-order filter denominator coefficients.
static float32_t FILTER_SO_run(FILTER_SO_Handle handle, const float32_t inputValue)
Runs a second-order filter of the form y[n] = b0*x[n] + b1*x[n-1] + b2*x[n-2] - a1*y[n-1] - a2*y[n-2]...
Definition: filter_so.h:344
static void FILTER_SO_set_b0(FILTER_SO_Handle handle, const float32_t b0)
Sets the second-order filter numerator coefficient b0.
Definition: filter_so.h:506
Defines the second-order filter (FILTER_SO) object.
Definition: filter_so.h:74
static void FILTER_SO_set_y2(FILTER_SO_Handle handle, const float32_t y2)
Sets the second-order filter output value at time sample n=-2.
Definition: filter_so.h:632
static void FILTER_SO_set_b1(FILTER_SO_Handle handle, const float32_t b1)
Sets the second-order filter numerator coefficient b1.
Definition: filter_so.h:527
static void FILTER_SO_set_a2(FILTER_SO_Handle handle, const float32_t a2)
Sets the second-order filter denominator coefficient a2.
Definition: filter_so.h:485
static float32_t FILTER_SO_get_b1(FILTER_SO_Handle handle)
Gets the second-order filter numerator coefficient b1.
Definition: filter_so.h:155
static float32_t FILTER_SO_get_a1(FILTER_SO_Handle handle)
Gets the second-order filter denominator coefficient a1.
Definition: filter_so.h:104
static void FILTER_SO_set_y1(FILTER_SO_Handle handle, const float32_t y1)
Sets the second-order filter output value at time sample n=-1.
Definition: filter_so.h:611
static void FILTER_SO_set_a1(FILTER_SO_Handle handle, const float32_t a1)
Sets the second-order filter denominator coefficient a1.
Definition: filter_so.h:464
static float32_t FILTER_SO_get_b0(FILTER_SO_Handle handle)
Gets the second-order filter numerator coefficient b0.
Definition: filter_so.h:138
static float32_t FILTER_SO_get_y2(FILTER_SO_Handle handle)
Gets the second-order filter output value at time sample n=-2.
Definition: filter_so.h:240
float32_t a2
the denominator filter coefficient value for z^(-2)
Definition: filter_so.h:77
float32_t b2
the numerator filter coefficient value for z^(-2)
Definition: filter_so.h:80
static float32_t FILTER_SO_get_y1(FILTER_SO_Handle handle)
Gets the second-order filter output value at time sample n=-1.
Definition: filter_so.h:223
float32_t b0
the numerator filter coefficient value for z^0
Definition: filter_so.h:78
struct _FILTER_SO_Obj_ * FILTER_SO_Handle
Defines the second-order filter (FILTER_SO) handle.
Definition: filter_so.h:92
static void FILTER_SO_set_x1(FILTER_SO_Handle handle, const float32_t x1)
Sets the second-order filter input value at time sample n=-1.
Definition: filter_so.h:569
float32_t y1
the output value at time sample n=-1
Definition: filter_so.h:83
static float32_t FILTER_SO_run_form_1(FILTER_SO_Handle handle, const float32_t inputValue)
Runs a second-order filter of the form y[n] = b0*x[n] + b1*x[n-1] - a1*y[n-1] - a2*y[n-2].
Definition: filter_so.h:425
void FILTER_SO_getNumCoeffs(FILTER_SO_Handle handle, float32_t *pb0, float32_t *pb1, float32_t *pb2)
Gets the second-order filter numerator coefficients.
static float32_t FILTER_SO_get_b2(FILTER_SO_Handle handle)
Gets the second-order filter numerator coefficient b2.
Definition: filter_so.h:172
float32_t x1
the input value at time sample n=-1
Definition: filter_so.h:81
static float32_t FILTER_SO_run_form_0(FILTER_SO_Handle handle, const float32_t inputValue)
Runs a simplified second-order filter of the form y[n] = b0*x[n] - a1*y[n-1] - a2*y[n-2].
Definition: filter_so.h:388
struct _FILTER_SO_Obj_ FILTER_SO_Obj
Defines the second-order filter (FILTER_SO) object.
static float32_t FILTER_SO_get_x1(FILTER_SO_Handle handle)
Gets the second-order filter input value at time sample n=-1.
Definition: filter_so.h:189
Copyright 2023, Texas Instruments Incorporated