![]() |
![]() |
|
MSPM0G3519SensoredFOCMotorControlLibrary
1.0
|
#include "stdint.h"#include <ti/iqmath/include/IQmathLib.h>#include "IQmath_mathacl.h"#include "iqNum.h"

Go to the source code of this file.
Data Structures | |
| union | PI_FLAGS_T |
| PI Flags Working Structure. More... | |
| struct | PI_FLAGS_T::piFlags |
| PI flags Structure. More... | |
| struct | PI_T |
| PI Working Structure. More... | |
Macros | |
| #define | KP_IQ_SCALING 24 |
| KP IQ Scaling. | |
| #define | KP_TERM_SAT (((int32_t)1) << (30 - GLOBAL_IQ + KP_IQ_SCALING)) |
| KP Term Saturation Lim. | |
Functions | |
| void | piInit (PI_T *pPI) |
| PI Init. More... | |
| void | piRun (PI_T *pPI) |
| PI Run. More... | |
| void | piRun_LowPriority (PI_T *pPI) |
| PI Low Priority Run. More... | |
| void piInit | ( | PI_T * | pPI | ) |
PI Init.
| [in] | *pPI | Input Pointer |
References PI_FLAGS_T::b, PI_FLAGS_T::piFlags::externalSaturation, FALSE, PI_T::flags, PI_T::kiTerm, PI_T::out, and PI_FLAGS_T::piFlags::saturation.
Referenced by closeLoopInit(), fluxWeakInit(), and focInit().
| void piRun | ( | PI_T * | pPI | ) |
PI Run.
| [in] | *pPI | Input Pointer |
References _IQmpy_mathacl, PI_FLAGS_T::b, PI_FLAGS_T::piFlags::externalSaturation, FALSE, PI_T::flags, GLOBAL_IQ, PI_T::ki, PI_T::kiTerm, PI_T::kp, KP_IQ_SCALING, KP_TERM_SAT, PI_T::out, PI_T::outMax, PI_T::outMin, PI_T::pFeedback, PI_T::pReference, PI_FLAGS_T::piFlags::saturation, and TRUE.
Referenced by closeLoopRun(), and focRun().
| void piRun_LowPriority | ( | PI_T * | pPI | ) |
PI Low Priority Run.
| [in] | *pPI | Input Pointer |
References PI_FLAGS_T::b, PI_FLAGS_T::piFlags::externalSaturation, FALSE, PI_T::flags, GLOBAL_IQ, PI_T::ki, PI_T::kiTerm, PI_T::kp, KP_IQ_SCALING, KP_TERM_SAT, PI_T::out, PI_T::outMax, PI_T::outMin, PI_T::pFeedback, PI_T::pReference, PI_FLAGS_T::piFlags::saturation, and TRUE.
Referenced by fluxWeakRun().