MotorWare f2806x Module API Documentation
Typedefs | Functions
afsel.h File Reference
#include "sw/modules/iqmath/src/32b/IQmathLib.h"
#include "sw/modules/math/src/32b/math.h"
#include "sw/modules/types/src/types.h"
#include "sw/modules/est/src/32b/est.h"
#include "sw/modules/ipd/src/32b/ipd_hfi.h"

Go to the source code of this file.

Typedefs

typedef struct _AFSEL_Obj_ * AFSEL_Handle
 Defines the AFSEL Torque handle. More...
 

Functions

void AFSEL_disable (AFSEL_Handle handle)
 Disable the afsel module. More...
 
void AFSEL_enable (AFSEL_Handle handle)
 Enable the afsel module. More...
 
_iq AFSEL_getAngle_pu (AFSEL_Handle handle)
 Gets the angle that will currently be used for FOC. More...
 
_iq AFSEL_getFreq_pu (AFSEL_Handle handle)
 Gets the speed that will currently be used. More...
 
_iq AFSEL_getIqMax (AFSEL_Handle handle)
 Gets the Iq maximum value currently used. More...
 
_iq AFSEL_getIqSlope (AFSEL_Handle handle)
 Gets the current Iq trajectory slope. More...
 
AFSEL_Handle AFSEL_init (void)
 Initializes the afsel module. More...
 
bool AFSEL_isDisabled (AFSEL_Handle handle)
 Is the afsel module disabled? More...
 
bool AFSEL_isEnabled (AFSEL_Handle handle)
 Is the afsel module enabled? More...
 
void AFSEL_run (AFSEL_Handle handle)
 Run the afsel. More...
 
static void AFSEL_setCountHysThreshold (AFSEL_Handle handle, const uint16_t value)
 Sets the threshold counter. More...
 
void AFSEL_setFreqHigh_pu (AFSEL_Handle handle, const _iq freq)
 Sets the frequency at which the HF estimator takes over angle and freq. More...
 
void AFSEL_setFreqLow_pu (AFSEL_Handle handle, const _iq freq)
 Sets the frequency at which the LF estimator takes over angle and freq. More...
 
void AFSEL_setParams (AFSEL_Handle handle, const _iq IqMaxLfEst, const _iq IqMaxHfEst, const _iq IqSlopeLfEst, const _iq IqSlopeHfEst, const _iq freqLow_pu, const _iq freqHigh_pu, IPD_HFI_Handle hfiHandle, EST_Handle estHandle)
 Sets the parameters. More...
 
void AFSEL_setup (AFSEL_Handle handle, const _iq angleLf_pu, const _iq freqLf_pu, const _iq angleHf_pu, const _iq freqHf_pu)
 Sets the parameters in the ISR before AFSEL_run() is called. More...
 
void AFSEL_updateState (AFSEL_Handle handle)
 Updates the state, called outside of the ISR. More...