Here is the list of ESMO function APIs
Files | |
file | esmo.h |
Contains Enhanced SMO Estimator (ESMO) functions implementation. | |
Data Structures | |
struct | ESMO_Handle |
Defines the ESMO controller object. More... | |
Functions | |
ESMO_Handle | ESMO_init (void *pMemory, const size_t numBytes) |
Initializes the ESMO controller. More... | |
void | ESMO_updateFilterParams (ESMO_Handle handle) |
Reset the ESMO controller. More... | |
void | ESMO_updatePLLParams (ESMO_Handle handle) |
Reset the ESMO controller. More... | |
void | ESMO_full_run (ESMO_Handle handle, float32_t Vdcbus, MATH_vec3 *pVabc_pu, MATH_vec2 *pIabVec) |
Runs the any actions that user desires on top of ESMO controller. More... | |
static void | ESMO_run (ESMO_Handle handle, const float32_t Vdcbus, MATH_vec3 *pVabc_pu, MATH_vec2 *pIabVec) |
Runs the ESMO controller. More... | |
static void | ESMO_resetParams (ESMO_Handle handle) |
Reset the ESMO controller. More... | |
void | ESMO_setParams (ESMO_Handle handle, const USER_Params *pUserParams) |
Set the ESMO controller. More... | |
static void | ESMO_setPLLParams (ESMO_Handle handle, const float32_t pll_KpMax, const float32_t pll_KpMin, const float32_t pll_KpSF) |
Set PLL parameters for the ESMO controller. More... | |
static void | ESMO_setPLLKi (ESMO_Handle handle, const float32_t pll_Ki) |
Set PLL parameters for the ESMO controller. More... | |
static void | ESMO_setBEMFThreshold (ESMO_Handle handle, const float32_t bemfThreshold) |
Set bemfThreshold for the ESMO controller. More... | |
static void | ESMO_setPLLKpSF (ESMO_Handle handle, const float32_t pll_KpSF) |
Set kp of the pll for the ESMO controller. More... | |
static void | ESMO_setKslideParams (ESMO_Handle handle, const float32_t KslideMax, const float32_t KslideMin) |
Set PLL parameters for the ESMO controller. More... | |
static void | ESMO_setKslide (ESMO_Handle handle, const float32_t Kslide) |
Sets Kslide for the ESMO controller. More... | |
static void | ESMO_resetPLL (ESMO_Handle handle) |
Resets PLL integration for the ESMO controller. More... | |
static void | ESMO_setOffsetCoef (ESMO_Handle handle, const float32_t offsetSF) |
Sets angle offset coefficient for the ESMO controller. More... | |
static void | ESMO_setBEMFKslfFreq (ESMO_Handle handle, const float32_t filterFc_sf) |
Sets speed filter cut off frequency for the ESMO controller. More... | |
static void | ESMO_setSpeedFilterFreq (ESMO_Handle handle, const float32_t lpfFc_Hz) |
Sets speed filter cut off frequency for the ESMO controller. More... | |
static void | ESMO_setPLLKp (ESMO_Handle handle, const float32_t pll_Kp) |
Runs the ESMO controller. More... | |
static void | ESMO_setAnglePu (ESMO_Handle handle, const float32_t theta_rad) |
Set Angle to the ESMO controller. More... | |
static void | ESMO_setPLLSpeedPu (ESMO_Handle handle, const float32_t speed_Hz) |
Set Angle to the ESMO controller. More... | |
static void | ESMO_setSpeedRef (ESMO_Handle handle, const float32_t speedRef_Hz) |
Set reference speed to the ESMO controller. More... | |
static float32_t | ESMO_getSpeed_Hz (ESMO_Handle handle) |
Gets the speed from the ESMO controller. More... | |
static float32_t | ESMO_getSpeedPLL_Hz (ESMO_Handle handle) |
Gets the PLL speed from the ESMO controller. More... | |
static float32_t | ESMO_getAnglePLL (ESMO_Handle handle) |
Gets the PLL angle from the ESMO controller. More... | |
static float32_t | ESMO_getAngleElec (ESMO_Handle handle) |
Gets the angle from the ESMO controller. More... | |
static void | ESMO_updateKslide (ESMO_Handle handle) |
Update Kslide for the ESMO controller. More... | |
Macros | |
#define | ESMO_inline_run ESMO_run |
#define ESMO_inline_run ESMO_run |
ESMO_Handle ESMO_init | ( | void * | pMemory, |
const size_t | numBytes | ||
) |
Initializes the ESMO controller.
[in] | pMemory | A pointer to the memory for the ESMO controller object |
[in] | numBytes | The number of bytes allocated for the ESMO controller object, bytes |
void ESMO_updateFilterParams | ( | ESMO_Handle | handle | ) |
Reset the ESMO controller.
[in] | handle | The ESMO controller handle |
void ESMO_updatePLLParams | ( | ESMO_Handle | handle | ) |
Reset the ESMO controller.
[in] | handle | The ESMO controller handle |
void ESMO_full_run | ( | ESMO_Handle | handle, |
float32_t | Vdcbus, | ||
MATH_vec3 * | pVabc_pu, | ||
MATH_vec2 * | pIabVec | ||
) |
Runs the any actions that user desires on top of ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | Vdcbus | The dc bus voltage |
[in] | pVabc_pu | The pointer to the phase voltage value (PU) |
[in] | pIabVec | The pointer to the phase current value |
|
static |
Runs the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | Vdcbus | The dc bus voltage |
[in] | pVabc_pu | The pointer to the phase voltage value (PU) |
[in] | pIabVec | The pointer to the phase current value |
|
inlinestatic |
Reset the ESMO controller.
[in] | handle | The ESMO controller handle |
void ESMO_setParams | ( | ESMO_Handle | handle, |
const USER_Params * | pUserParams | ||
) |
Set the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | pUserParams | The pointer to the user parameters |
|
inlinestatic |
Set PLL parameters for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | pll_KpMax | The maximum Kp of PLL |
[in] | pll_KpMin | The minimum Kp of PLL |
[in] | pll_KpSF | The Kp calculation coefficient of PLL |
|
inlinestatic |
Set PLL parameters for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | pll_Ki | The Ki of PLL |
|
inlinestatic |
Set bemfThreshold for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | bemfThreshold | The bemfThreshold value |
|
inlinestatic |
Set kp of the pll for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | pll_KpSF | The Kp calculation coefficient value |
|
inlinestatic |
Set PLL parameters for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | KslideMax | The maximum sliding control gain |
[in] | KslideMin | The minimum sliding control gain |
|
inlinestatic |
Sets Kslide for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | Kslide | The Kslide value |
|
inlinestatic |
Resets PLL integration for the ESMO controller.
[in] | handle | The ESMO controller handle |
|
inlinestatic |
Sets angle offset coefficient for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | offsetSF | The angle offset coefficient |
|
inlinestatic |
Sets speed filter cut off frequency for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | filterFc_sf | The slide filter frequency |
|
inlinestatic |
Sets speed filter cut off frequency for the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | lpfFc_Hz | The cut off frequency of the speed filter |
|
inlinestatic |
Runs the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | pll_Kp | The Kp value |
|
inlinestatic |
Set Angle to the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | theta_rad | The estimation angle, rad |
|
inlinestatic |
Set Angle to the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | speed_Hz | The feedback speed value, Hz |
|
inlinestatic |
Set reference speed to the ESMO controller.
[in] | handle | The ESMO controller handle |
[in] | speedRef_Hz | The reference speed value |
|
inlinestatic |
Gets the speed from the ESMO controller.
[in] | handle | The ESMO controller handle |
|
inlinestatic |
Gets the PLL speed from the ESMO controller.
[in] | handle | The ESMO controller handle |
|
inlinestatic |
Gets the PLL angle from the ESMO controller.
[in] | handle | The ESMO controller handle |
|
inlinestatic |
Gets the angle from the ESMO controller.
[in] | handle | The ESMO controller handle |
|
inlinestatic |
Update Kslide for the ESMO controller.
[in] | handle | The ESMO controller handle |