178 extern FILTER_FO_Handle
FILTER_FO_init(
void *pMemory,
const size_t numBytes);
187 #ifdef __TMS320C28XX_CLA__
188 #pragma FUNC_ALWAYS_INLINE(FILTER_FO_run)
202 float_t y0 = (b0 * inputValue) + (b1 * x1) - (a1 *
y1);
206 obj->
x1 = inputValue;
229 float_t y0 = (b0 * inputValue) - (a1 * y1);
329 #endif // end of _FILTER_FO_H_ definition
static float_t FILTER_FO_get_b0(FILTER_FO_Handle handle)
Gets the first-order filter numerator coefficient b0.
Contains the public interface to the types definitions.
static void FILTER_FO_set_x1(FILTER_FO_Handle handle, const float_t x1)
Sets the first-order filter input value at time sample n=-1.
float_t b1
the numerator filter coefficient value for z^(-1)
_iq b1
the numerator filter coefficient value for z^(-1)
_iq a1
the denominator filter coefficient value for z^(-1)
float_t x1
the input value at time sample n=-1
void FILTER_FO_getInitialConditions(FILTER_FO_Handle handle, float_t *px1, float_t *py1)
Gets the initial conditions of the first-order filter.
static float_t FILTER_FO_run(FILTER_FO_Handle handle, const float_t inputValue)
Runs a first-order filter of the form y[n] = b0*x[n] + b1*x[n-1] - a1*y[n-1].
void FILTER_FO_getNumCoeffs(FILTER_FO_Handle handle, float_t *pb0, float_t *pb1)
Gets the first-order filter numerator coefficients.
struct _FILTER_FO_Obj_ * FILTER_FO_Handle
Defines the first-order filter (FILTER_FO) handle.
static void FILTER_FO_set_y1(FILTER_FO_Handle handle, const float_t y1)
Sets the first-order filter output value at time sample n=-1.
Defines the first-order filter (FILTER_FO) object.
_iq x1
the input value at time sample n=-1
FILTER_FO_Handle FILTER_FO_init(void *pMemory, const size_t numBytes)
Initializes the first-order filter.
struct _FILTER_FO_Obj_ FILTER_FO_Obj
Defines the first-order filter (FILTER_FO) object.
static void FILTER_FO_set_b1(FILTER_FO_Handle handle, const float_t b1)
Sets the first-order filter numerator coefficient b1.
static void FILTER_FO_set_b0(FILTER_FO_Handle handle, const float_t b0)
Sets the first-order filter numerator coefficient b0.
static float_t FILTER_FO_get_a1(FILTER_FO_Handle handle)
Gets the first-order filter denominator coefficient a1.
void FILTER_FO_setNumCoeffs(FILTER_FO_Handle handle, const float_t b0, const float_t b1)
Sets the first-order filter numerator coefficients.
void FILTER_FO_getDenCoeffs(FILTER_FO_Handle handle, float_t *pa1)
Gets the first-order filter denominator coefficients.
_iq b0
the numerator filter coefficient value for z^0
void FILTER_FO_setDenCoeffs(FILTER_FO_Handle handle, const float_t a1)
Sets the first-order filter denominator coefficients.
static float_t FILTER_FO_run_form_0(FILTER_FO_Handle handle, const float_t inputValue)
Runs a first-order filter of the form y[n] = b0*x[n] - a1*y[n-1].
static void FILTER_FO_set_a1(FILTER_FO_Handle handle, const float_t a1)
Sets the first-order filter denominator coefficient a1.
_iq y1
the output value at time sample n=-1
static float_t FILTER_FO_get_b1(FILTER_FO_Handle handle)
Gets the first-order filter numerator coefficient b1.
static float_t FILTER_FO_get_x1(FILTER_FO_Handle handle)
Gets the first-order filter input value at time sample n=-1.
void FILTER_FO_setInitialConditions(FILTER_FO_Handle handle, const float_t x1, const float_t y1)
Sets the initial conditions of the first-order filter.
float_t b0
the numerator filter coefficient value for z^0
float_t a1
the denominator filter coefficient value for z^(-1)
Defines the first-order filter (FILTER_FO) object.
static float_t FILTER_FO_get_y1(FILTER_FO_Handle handle)
Gets the first-order filter output value at time sample n=-1.
float_t y1
the output value at time sample n=-1
float float_t
Defines the portable data type for 32 bit, signed floating-point data.