Go to the documentation of this file.
293 PI_init(
void *pMemory,
const size_t numBytes);
610 #ifdef __TMS320C28XX_CLA__
614 #endif // __TMS320C28XX_CLA__
624 #ifdef __TMS320C28XX_CLA__
628 #endif // __TMS320C28XX_CLA__
667 #ifdef __TMS320C28XX_CLA__
671 #endif // __TMS320C28XX_CLA__
678 #ifdef __TMS320C28XX_CLA__
682 #endif // __TMS320C28XX_CLA__
703 #endif // end of PI_H defines
float32_t fbackValue
the feedback input value
Definition: pi.h:80
static void PI_getMinMax(PI_Handle handle, float32_t *pOutMin, float32_t *pOutMax)
Gets the minimum and maximum output value allowed in the PI controller.
Definition: pi.h:202
float32_t Ki
the integral gain for the PI controller
Definition: pi.h:76
float float32_t
Definition: sfra_f32.h:42
float32_t outMin
controller
Definition: pi.h:82
static void PI_setUi(PI_Handle handle, const float32_t Ui)
Sets the integrator start value in the PI controller.
Definition: pi.h:506
PI_Handle PI_init(void *pMemory, const size_t numBytes)
Initializes the PI controller.
static float32_t PI_getUi(PI_Handle handle)
Gets the integrator start value in the PI controller.
Definition: pi.h:273
static void PI_getGains(PI_Handle handle, float32_t *pKp, float32_t *pKi)
Gets the gains in the PI controller.
Definition: pi.h:143
static void PI_setKi(PI_Handle handle, const float32_t Ki)
Sets the integral gain in the PI controller.
Definition: pi.h:376
static void PI_run_parallel(PI_Handle handle, const float32_t refValue, const float32_t fbackValue, const float32_t ffwdValue, float32_t *pOutValue)
Runs the parallel form of the PI controller.
Definition: pi.h:533
static float32_t PI_getKp(PI_Handle handle)
Gets the proportional gain in the PI controller.
Definition: pi.h:180
float32_t refValue
the reference input value
Definition: pi.h:79
static void PI_setOutMin(PI_Handle handle, const float32_t outMin)
Sets the minimum output value allowed in the PI controller.
Definition: pi.h:464
static float32_t PI_getOutMax(PI_Handle handle)
Gets the maximum output value allowed in the PI controller.
Definition: pi.h:222
struct _PI_Obj_ PI_Obj
Defines the PI controller object.
static float32_t PI_getFbackValue(PI_Handle handle)
Gets the feedback value in the PI controller.
Definition: pi.h:105
PI_Handle cla_PI_init(void *pMemory, const size_t numBytes)
float32_t Ui
controller
Definition: pi.h:77
static void PI_setKp(PI_Handle handle, const float32_t Kp)
Sets the proportional gain in the PI controller.
Definition: pi.h:397
static float32_t PI_getOutMin(PI_Handle handle)
Gets the minimum output value allowed in the PI controller.
Definition: pi.h:239
static float32_t MATH_sat(const float32_t in, const float32_t max, const float32_t min)
Saturates the input value between the minimum and maximum values.
Definition: math.h:364
static float32_t PI_getKi(PI_Handle handle)
Gets the integral gain in the PI controller.
Definition: pi.h:163
float32_t ffwdValue
the feedforward input value
Definition: pi.h:81
Defines the PI controller object.
Definition: pi.h:73
float32_t outMax
controller
Definition: pi.h:84
static void PI_setGains(PI_Handle handle, const float32_t Kp, const float32_t Ki)
Sets the gains in the PI controller.
Definition: pi.h:354
static void PI_run(PI_Handle handle, const float32_t refValue, const float32_t fbackValue, float32_t *pOutValue)
Runs the series form of the PI controller.
Definition: pi.h:650
float32_t Kp
the proportional gain for the PI controller
Definition: pi.h:75
static void PI_setFbackValue(PI_Handle handle, const float32_t fbackValue)
Sets the feedback value in the PI controller.
Definition: pi.h:310
static void PI_setFfwdValue(PI_Handle handle, const float32_t ffwdValue)
Sets the feedforward value in the PI controller.
Definition: pi.h:331
static void PI_setOutMax(PI_Handle handle, const float32_t outMax)
Sets the maximum output value allowed in the PI controller.
Definition: pi.h:443
static void PI_setMinMax(PI_Handle handle, const float32_t outMin, const float32_t outMax)
Sets the minimum and maximum output value allowed in the PI controller.
Definition: pi.h:421
static float32_t PI_getFfwdValue(PI_Handle handle)
Gets the feedforward value in the PI controller.
Definition: pi.h:122
static float32_t PI_getRefValue(PI_Handle handle)
Gets the reference value in the PI controller.
Definition: pi.h:256
struct _PI_Obj_ * PI_Handle
Defines the PI handle.
Definition: pi.h:93
static void PI_setRefValue(PI_Handle handle, const float32_t refValue)
Sets the reference value in the PI controller.
Definition: pi.h:485
static void PI_run_series(PI_Handle handle, const float32_t refValue, const float32_t fbackValue, const float32_t ffwdValue, float32_t *pOutValue)
Runs the series form of the PI controller.
Definition: pi.h:588
Copyright 2023, Texas Instruments Incorporated