|
AM263x Motor Control SDK
09.02.00
|
|
Go to the documentation of this file.
59 #define _FILTER_FO_Obj_ dcl_df11
240 handle->d2 = (b0 * inputValue) - (a1 * d2);
378 #endif // FILTER_FO_H
static float32_t FILTER_FO_get_b0(FILTER_FO_Handle handle)
Gets the first-order filter numerator coefficient b0.
Definition: filter_fo.h:88
DCL_DF11 * FILTER_FO_Handle
Definition: filter_fo.h:61
void FILTER_FO_setInitialConditions(FILTER_FO_Handle handle, const float32_t d1, const float32_t d2)
Sets the initial conditions of the first-order filter.
static float32_t FILTER_FO_get_b1(FILTER_FO_Handle handle)
Gets the first-order filter numerator coefficient b1.
Definition: filter_fo.h:103
static float32_t FILTER_FO_run_form_0(FILTER_FO_Handle handle, const float32_t inputValue)
Runs a first-order filter of the form y[n] = b0*x[n] - a1*y[n-1].
Definition: filter_fo.h:231
static void FILTER_FO_set_b0(FILTER_FO_Handle handle, const float32_t b0)
Sets the first-order filter numerator coefficient b0.
Definition: filter_fo.h:272
_DCL_VOLATILE struct dcl_df11 DCL_DF11
static void FILTER_FO_set_b1(FILTER_FO_Handle handle, const float32_t b1)
Sets the first-order filter numerator coefficient b1.
Definition: filter_fo.h:289
static float32_t FILTER_FO_get_y1(FILTER_FO_Handle handle)
Gets the first-order filter output value at time sample n=-1.
Definition: filter_fo.h:133
_DCL_CRIT_ACCESS float32_t DCL_runDF11(DCL_DF11 *df, float32_t ek)
Executes a 1st order Direct Form 1 controller.
Definition: dcl_df11.h:273
void FILTER_FO_getNumCoeffs(FILTER_FO_Handle handle, float32_t *pb0, float32_t *pb1)
Gets the first-order filter numerator coefficients.
static float32_t FILTER_FO_run(FILTER_FO_Handle handle, const float32_t inputValue)
Runs a first-order filter of the form y[n] = b0*x[n] + b1*x[n-1] - a1*y[n-1].
Definition: filter_fo.h:213
void FILTER_FO_getDenCoeffs(FILTER_FO_Handle handle, float32_t *pa1)
Gets the first-order filter denominator coefficients.
Top level header that contains all collections of Digital Controller Library functions.
void FILTER_FO_getInitialConditions(FILTER_FO_Handle handle, float32_t *px1, float32_t *py1)
Gets the initial conditions of the first-order filter.
void FILTER_FO_setNumCoeffs(FILTER_FO_Handle handle, const float32_t b0, const float32_t b1)
Sets the first-order filter numerator coefficients.
DCL_DF11 FILTER_FO_Obj
Definition: filter_fo.h:60
static void FILTER_FO_set_x1(FILTER_FO_Handle handle, const float32_t x1)
Sets the first-order filter input value at time sample n=-1.
Definition: filter_fo.h:306
static float32_t FILTER_FO_get_x1(FILTER_FO_Handle handle)
Gets the first-order filter input value at time sample n=-1.
Definition: filter_fo.h:118
static void FILTER_FO_set_y1(FILTER_FO_Handle handle, const float32_t y1)
Sets the first-order filter output value at time sample n=-1.
Definition: filter_fo.h:323
static float32_t FILTER_FO_get_a1(FILTER_FO_Handle handle)
Gets the first-order filter denominator coefficient a1.
Definition: filter_fo.h:73
FILTER_FO_Handle FILTER_FO_init(void *pMemory, const size_t numBytes)
Initializes the first-order filter.
void FILTER_FO_setDenCoeffs(FILTER_FO_Handle handle, const float32_t a1)
Sets the first-order filter denominator coefficients.
float float32_t
Definition: dcl_common.h:58
static void FILTER_FO_set_a1(FILTER_FO_Handle handle, const float32_t a1)
Sets the first-order filter denominator coefficient a1.
Definition: filter_fo.h:255