|
MotorWare f2806x Module API Documentation
|
Data Structures | |
| struct | _FILTER_FO_ |
| Defines the first-order filter (FILTER_FO) object. More... | |
| struct | _FILTER_FO_Obj_ |
| Defines the first-order filter (FILTER_FO) object. More... | |
Typedefs | |
| typedef struct _FILTER_FO_ | FILTER_FO_Obj |
| Defines the first-order filter (FILTER_FO) object. More... | |
| typedef struct _FILTER_FO_Obj_ * | FILTER_FO_Handle |
| Defines the first-order filter (FILTER_FO) handle. More... | |
| typedef struct _FILTER_FO_Obj_ | FILTER_FO_Obj |
| Defines the first-order filter (FILTER_FO) object. More... | |
| typedef struct _FILTER_FO_Obj_ * | FILTER_FO_Handle |
| Defines the first-order filter (FILTER_FO) handle. More... | |
Functions | |
| static _iq | FILTER_FO_get_a1 (FILTER_FO_Handle handle) |
| Gets the first-order filter denominator coefficient a1. More... | |
| static _iq | FILTER_FO_get_b0 (FILTER_FO_Handle handle) |
| Gets the first-order filter numerator coefficient b0. More... | |
| static _iq | FILTER_FO_get_b1 (FILTER_FO_Handle handle) |
| Gets the first-order filter numerator coefficient b1. More... | |
| static _iq | FILTER_FO_get_x1 (FILTER_FO_Handle handle) |
| Gets the first-order filter input value at time sample n=-1. More... | |
| static _iq | FILTER_FO_get_y1 (FILTER_FO_Handle handle) |
| Gets the first-order filter output value at time sample n=-1. More... | |
| void | FILTER_FO_getDenCoeffs (FILTER_FO_Handle handle, _iq *pa1) |
| Gets the first-order filter denominator coefficients. More... | |
| void | FILTER_FO_getInitialConditions (FILTER_FO_Handle handle, _iq *px1, _iq *py1) |
| Gets the initial conditions of the first-order filter. More... | |
| void | FILTER_FO_getNumCoeffs (FILTER_FO_Handle handle, _iq *pb0, _iq *pb1) |
| Gets the first-order filter numerator coefficients. More... | |
| FILTER_FO_Handle | FILTER_FO_init (void *pMemory, const size_t numBytes) |
| Initializes the first-order filter. More... | |
| static _iq | FILTER_FO_run (FILTER_FO_Handle handle, const _iq inputValue) |
| Runs a first-order filter of the form y[n] = b0*x[n] + b1*x[n-1] - a1*y[n-1]. More... | |
| static _iq | FILTER_FO_run_form_0 (FILTER_FO_Handle handle, const _iq inputValue) |
| Runs a first-order filter of the form y[n] = b0*x[n] - a1*y[n-1]. More... | |
| static void | FILTER_FO_set_a1 (FILTER_FO_Handle handle, const _iq a1) |
| Sets the first-order filter denominator coefficient a1. More... | |
| static void | FILTER_FO_set_b0 (FILTER_FO_Handle handle, const _iq b0) |
| Sets the first-order filter numerator coefficient b0. More... | |
| static void | FILTER_FO_set_b1 (FILTER_FO_Handle handle, const _iq b1) |
| Sets the first-order filter numerator coefficient b1. More... | |
| static void | FILTER_FO_set_x1 (FILTER_FO_Handle handle, const _iq x1) |
| Sets the first-order filter input value at time sample n=-1. More... | |
| static void | FILTER_FO_set_y1 (FILTER_FO_Handle handle, const _iq y1) |
| Sets the first-order filter output value at time sample n=-1. More... | |
| void | FILTER_FO_setDenCoeffs (FILTER_FO_Handle handle, const _iq a1) |
| Sets the first-order filter denominator coefficients. More... | |
| void | FILTER_FO_setInitialConditions (FILTER_FO_Handle handle, const _iq x1, const _iq y1) |
| Sets the initial conditions of the first-order filter. More... | |
| void | FILTER_FO_setNumCoeffs (FILTER_FO_Handle handle, const _iq b0, const _iq b1) |
| Sets the first-order filter numerator coefficients. More... | |
| void | FILTER_FO_getDenCoeffs (FILTER_FO_Handle handle, float_t *pa1) |
| Gets the first-order filter denominator coefficients. More... | |
| void | FILTER_FO_getInitialConditions (FILTER_FO_Handle handle, float_t *px1, float_t *py1) |
| Gets the initial conditions of the first-order filter. More... | |
| void | FILTER_FO_getNumCoeffs (FILTER_FO_Handle handle, float_t *pb0, float_t *pb1) |
| Gets the first-order filter numerator coefficients. More... | |
| 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]. More... | |
| 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]. More... | |
| static void | FILTER_FO_set_a1 (FILTER_FO_Handle handle, const float_t a1) |
| Sets the first-order filter denominator coefficient a1. More... | |
| static void | FILTER_FO_set_b0 (FILTER_FO_Handle handle, const float_t b0) |
| Sets the first-order filter numerator coefficient b0. More... | |
| static void | FILTER_FO_set_b1 (FILTER_FO_Handle handle, const float_t b1) |
| Sets the first-order filter numerator coefficient b1. More... | |
| 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. More... | |
| 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. More... | |
| void | FILTER_FO_setDenCoeffs (FILTER_FO_Handle handle, const float_t a1) |
| Sets the first-order filter denominator coefficients. More... | |
| 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. More... | |
| void | FILTER_FO_setNumCoeffs (FILTER_FO_Handle handle, const float_t b0, const float_t b1) |
| Sets the first-order filter numerator coefficients. More... | |
| struct _FILTER_FO_ |
Defines the first-order filter (FILTER_FO) object.
Definition at line 71 of file 32b/filter_fo.h.
| Data Fields | ||
|---|---|---|
| _iq | a1 | the denominator filter coefficient value for z^(-1) |
| _iq | b0 | the numerator filter coefficient value for z^0 |
| _iq | b1 | the numerator filter coefficient value for z^(-1) |
| _iq | x1 | the input value at time sample n=-1 |
| _iq | y1 | the output value at time sample n=-1 |
| struct _FILTER_FO_Obj_ |
Defines the first-order filter (FILTER_FO) object.
Definition at line 69 of file float/filter_fo.h.
| Data Fields | ||
|---|---|---|
| float_t | a1 | the denominator filter coefficient value for z^(-1) |
| float_t | b0 | the numerator filter coefficient value for z^0 |
| float_t | b1 | the numerator filter coefficient value for z^(-1) |
| float_t | x1 | the input value at time sample n=-1 |
| float_t | y1 | the output value at time sample n=-1 |
| typedef struct _FILTER_FO_Obj_* FILTER_FO_Handle |
Defines the first-order filter (FILTER_FO) handle.
Definition at line 84 of file float/filter_fo.h.
| typedef struct _FILTER_FO_Obj_* FILTER_FO_Handle |
Defines the first-order filter (FILTER_FO) handle.
Definition at line 86 of file 32b/filter_fo.h.
| typedef struct _FILTER_FO_Obj_ FILTER_FO_Obj |
Defines the first-order filter (FILTER_FO) object.
| typedef struct _FILTER_FO_ FILTER_FO_Obj |
Defines the first-order filter (FILTER_FO) object.
|
inlinestatic |
Gets the first-order filter denominator coefficient a1.
| [in] | handle | The filter handle |
| [in] | a1 | The filter coefficient value for z^(-1) |
Definition at line 104 of file 32b/filter_fo.h.
References _FILTER_FO_::a1.
Referenced by PID_getDerFilterParams().
|
inlinestatic |
Gets the first-order filter numerator coefficient b0.
| [in] | handle | The filter handle |
| [in] | b0 | The filter coefficient value for z^0 |
Definition at line 115 of file 32b/filter_fo.h.
References _FILTER_FO_::b0.
Referenced by OFFSET_getBeta(), and PID_getDerFilterParams().
|
inlinestatic |
Gets the first-order filter numerator coefficient b1.
| [in] | handle | The filter handle |
Definition at line 126 of file 32b/filter_fo.h.
References _FILTER_FO_::b1.
Referenced by PID_getDerFilterParams().
|
inlinestatic |
Gets the first-order filter input value at time sample n=-1.
| [in] | handle | The filter handle |
Definition at line 137 of file 32b/filter_fo.h.
References _FILTER_FO_::x1.
Referenced by PID_getDerFilterParams().
|
inlinestatic |
Gets the first-order filter output value at time sample n=-1.
| [in] | handle | The filter handle |
Definition at line 148 of file 32b/filter_fo.h.
References _FILTER_FO_::y1.
Referenced by PID_getDerFilterParams().
| void FILTER_FO_getDenCoeffs | ( | FILTER_FO_Handle | handle, |
| float_t * | pa1 | ||
| ) |
Gets the first-order filter denominator coefficients.
| [in] | handle | The filter handle |
| [in] | pa1 | The pointer to memory for the filter coefficient value for z^(-1) |
Definition at line 69 of file float/filter_fo.c.
References _FILTER_FO_::a1.
| void FILTER_FO_getDenCoeffs | ( | FILTER_FO_Handle | handle, |
| _iq * | pa1 | ||
| ) |
Gets the first-order filter denominator coefficients.
| [in] | handle | The filter handle |
| [in] | pa1 | The pointer to memory for the filter coefficient value for z^(-1) |
Definition at line 58 of file 32b/filter_fo.c.
References _FILTER_FO_::a1.
| void FILTER_FO_getInitialConditions | ( | FILTER_FO_Handle | handle, |
| float_t * | px1, | ||
| float_t * | py1 | ||
| ) |
Gets the initial conditions of the first-order filter.
| [in] | handle | The filter handle |
| [in] | px1 | The pointer to memory for the input value at time sample n=-1 |
| [in] | py1 | The pointer to memory for the output value at time sample n=-1 |
Definition at line 80 of file float/filter_fo.c.
References _FILTER_FO_::x1, and _FILTER_FO_::y1.
| void FILTER_FO_getInitialConditions | ( | FILTER_FO_Handle | handle, |
| _iq * | px1, | ||
| _iq * | py1 | ||
| ) |
Gets the initial conditions of the first-order filter.
| [in] | handle | The filter handle |
| [in] | px1 | The pointer to memory for the input value at time sample n=-1 |
| [in] | py1 | The pointer to memory for the output value at time sample n=-1 |
Definition at line 69 of file 32b/filter_fo.c.
References _FILTER_FO_::x1, and _FILTER_FO_::y1.
| void FILTER_FO_getNumCoeffs | ( | FILTER_FO_Handle | handle, |
| float_t * | pb0, | ||
| float_t * | pb1 | ||
| ) |
Gets the first-order filter numerator coefficients.
| [in] | handle | The filter handle |
| [in] | pb0 | The pointer to memory for the filter coefficient value for z^0 |
| [in] | pb1 | The pointer to memory for the filter coefficient value for z^(-1) |
Definition at line 93 of file float/filter_fo.c.
References _FILTER_FO_::b0, and _FILTER_FO_::b1.
| void FILTER_FO_getNumCoeffs | ( | FILTER_FO_Handle | handle, |
| _iq * | pb0, | ||
| _iq * | pb1 | ||
| ) |
Gets the first-order filter numerator coefficients.
| [in] | handle | The filter handle |
| [in] | pb0 | The pointer to memory for the filter coefficient value for z^0 |
| [in] | pb1 | The pointer to memory for the filter coefficient value for z^(-1) |
Definition at line 82 of file 32b/filter_fo.c.
References _FILTER_FO_::b0, and _FILTER_FO_::b1.
Referenced by OFFSET_getBeta().
| FILTER_FO_Handle FILTER_FO_init | ( | void * | pMemory, |
| const size_t | numBytes | ||
| ) |
Initializes the first-order filter.
| [in] | pMemory | A pointer to the memory for the first-order filter object |
| [in] | numBytes | The number of bytes allocated for the first-order filter object, bytes |
Definition at line 94 of file 32b/filter_fo.c.
Referenced by OFFSET_init(), and PID_init().
|
inlinestatic |
Runs a first-order filter of the form y[n] = b0*x[n] + b1*x[n-1] - a1*y[n-1].
| [in] | handle | The filter handle |
| [in] | inputValue | The input value to filter |
Definition at line 189 of file 32b/filter_fo.h.
References _IQmpy, _FILTER_FO_Obj_::a1, _FILTER_FO_::a1, _FILTER_FO_Obj_::b0, _FILTER_FO_::b0, _FILTER_FO_Obj_::b1, _FILTER_FO_::b1, _FILTER_FO_Obj_::x1, _FILTER_FO_::x1, _FILTER_FO_Obj_::y1, and _FILTER_FO_::y1.
Referenced by OFFSET_run(), PID_run_parallel(), and PID_run_series().
|
inlinestatic |
Runs a first-order filter of the form y[n] = b0*x[n] + b1*x[n-1] - a1*y[n-1].
| [in] | handle | The filter handle |
| [in] | inputValue | The input value to filter |
Definition at line 190 of file float/filter_fo.h.
References _FILTER_FO_Obj_::a1, _FILTER_FO_::a1, _FILTER_FO_Obj_::b0, _FILTER_FO_::b0, _FILTER_FO_Obj_::b1, _FILTER_FO_::b1, _FILTER_FO_Obj_::x1, _FILTER_FO_::x1, _FILTER_FO_Obj_::y1, and _FILTER_FO_::y1.
|
inlinestatic |
Runs a first-order filter of the form y[n] = b0*x[n] - a1*y[n-1].
| [in] | handle | The filter handle |
| [in] | inputValue | The input value to filter |
Definition at line 219 of file 32b/filter_fo.h.
References _IQmpy, _FILTER_FO_Obj_::a1, _FILTER_FO_::a1, _FILTER_FO_Obj_::b0, _FILTER_FO_::b0, _FILTER_FO_Obj_::y1, and _FILTER_FO_::y1.
|
inlinestatic |
Runs a first-order filter of the form y[n] = b0*x[n] - a1*y[n-1].
| [in] | handle | The filter handle |
| [in] | inputValue | The input value to filter |
Definition at line 219 of file float/filter_fo.h.
References _FILTER_FO_Obj_::a1, _FILTER_FO_::a1, _FILTER_FO_Obj_::b0, _FILTER_FO_::b0, _FILTER_FO_Obj_::y1, and _FILTER_FO_::y1.
|
inlinestatic |
Sets the first-order filter denominator coefficient a1.
| [in] | handle | The filter handle |
| [in] | a1 | The filter coefficient value for z^(-1) |
Definition at line 242 of file float/filter_fo.h.
References _FILTER_FO_Obj_::a1, and _FILTER_FO_::a1.
|
inlinestatic |
Sets the first-order filter denominator coefficient a1.
| [in] | handle | The filter handle |
| [in] | a1 | The filter coefficient value for z^(-1) |
Definition at line 242 of file 32b/filter_fo.h.
References _FILTER_FO_Obj_::a1, and _FILTER_FO_::a1.
|
inlinestatic |
Sets the first-order filter numerator coefficient b0.
| [in] | handle | The filter handle |
| [in] | b0 | The filter coefficient value for z^0 |
Definition at line 255 of file float/filter_fo.h.
References _FILTER_FO_Obj_::b0, and _FILTER_FO_::b0.
|
inlinestatic |
Sets the first-order filter numerator coefficient b0.
| [in] | handle | The filter handle |
| [in] | b0 | The filter coefficient value for z^0 |
Definition at line 255 of file 32b/filter_fo.h.
References _FILTER_FO_Obj_::b0, and _FILTER_FO_::b0.
|
inlinestatic |
Sets the first-order filter numerator coefficient b1.
| [in] | handle | The filter handle |
| [in] | b1 | The filter coefficient value for z^(-1) |
Definition at line 268 of file 32b/filter_fo.h.
References _FILTER_FO_Obj_::b1, and _FILTER_FO_::b1.
|
inlinestatic |
Sets the first-order filter numerator coefficient b1.
| [in] | handle | The filter handle |
| [in] | b1 | The filter coefficient value for z^(-1) |
Definition at line 268 of file float/filter_fo.h.
References _FILTER_FO_Obj_::b1, and _FILTER_FO_::b1.
|
inlinestatic |
Sets the first-order filter input value at time sample n=-1.
| [in] | handle | The filter handle |
| [in] | x1 | The input value at time sample n=-1 |
Definition at line 281 of file 32b/filter_fo.h.
References _FILTER_FO_Obj_::x1, and _FILTER_FO_::x1.
|
inlinestatic |
Sets the first-order filter input value at time sample n=-1.
| [in] | handle | The filter handle |
| [in] | x1 | The input value at time sample n=-1 |
Definition at line 281 of file float/filter_fo.h.
References _FILTER_FO_Obj_::x1, and _FILTER_FO_::x1.
|
inlinestatic |
Sets the first-order filter output value at time sample n=-1.
| [in] | handle | The filter handle |
| [in] | y1 | The output value at time sample n=-1 |
Definition at line 294 of file 32b/filter_fo.h.
References _FILTER_FO_Obj_::y1, and _FILTER_FO_::y1.
|
inlinestatic |
Sets the first-order filter output value at time sample n=-1.
| [in] | handle | The filter handle |
| [in] | y1 | The output value at time sample n=-1 |
Definition at line 294 of file float/filter_fo.h.
References _FILTER_FO_Obj_::y1, and _FILTER_FO_::y1.
| void FILTER_FO_setDenCoeffs | ( | FILTER_FO_Handle | handle, |
| const float_t | a1 | ||
| ) |
Sets the first-order filter denominator coefficients.
| [in] | handle | The filter handle |
| [in] | a1 | The filter coefficient value for z^(-1) |
Definition at line 125 of file float/filter_fo.c.
References _FILTER_FO_::a1.
| void FILTER_FO_setDenCoeffs | ( | FILTER_FO_Handle | handle, |
| const _iq | a1 | ||
| ) |
Sets the first-order filter denominator coefficients.
| [in] | handle | The filter handle |
| [in] | a1 | The filter coefficient value for z^(-1) |
Definition at line 109 of file 32b/filter_fo.c.
References _FILTER_FO_::a1.
Referenced by OFFSET_setBeta(), and PID_setDerFilterParams().
| 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.
| [in] | handle | The filter handle |
| [in] | x1 | The input value at time sample n=-1 |
| [in] | y1 | The output value at time sample n=-1 |
Definition at line 136 of file float/filter_fo.c.
References _FILTER_FO_::x1, and _FILTER_FO_::y1.
| void FILTER_FO_setInitialConditions | ( | FILTER_FO_Handle | handle, |
| const _iq | x1, | ||
| const _iq | y1 | ||
| ) |
Sets the initial conditions of the first-order filter.
| [in] | handle | The filter handle |
| [in] | x1 | The input value at time sample n=-1 |
| [in] | y1 | The output value at time sample n=-1 |
Definition at line 120 of file 32b/filter_fo.c.
References _FILTER_FO_::x1, and _FILTER_FO_::y1.
Referenced by OFFSET_setInitCond(), and PID_setDerFilterParams().
| void FILTER_FO_setNumCoeffs | ( | FILTER_FO_Handle | handle, |
| const _iq | b0, | ||
| const _iq | b1 | ||
| ) |
Sets the first-order filter numerator coefficients.
| [in] | handle | The filter handle |
| [in] | b0 | The filter coefficient value for z^0 |
| [in] | b1 | The filter coefficient value for z^(-1) |
Definition at line 133 of file 32b/filter_fo.c.
References _FILTER_FO_::b0, and _FILTER_FO_::b1.
Referenced by OFFSET_setBeta(), and PID_setDerFilterParams().
| void FILTER_FO_setNumCoeffs | ( | FILTER_FO_Handle | handle, |
| const float_t | b0, | ||
| const float_t | b1 | ||
| ) |
Sets the first-order filter numerator coefficients.
| [in] | handle | The filter handle |
| [in] | b0 | The filter coefficient value for z^0 |
| [in] | b1 | The filter coefficient value for z^(-1) |
Definition at line 149 of file float/filter_fo.c.
References _FILTER_FO_::b0, and _FILTER_FO_::b1.
1.8.9.1