139 extern void AFSEL_run(AFSEL_Handle handle);
171 const _iq IqMaxLfEst,
172 const _iq IqMaxHfEst,
173 const _iq IqSlopeLfEst,
174 const _iq IqSlopeHfEst,
175 const _iq freqLow_pu,
176 const _iq freqHigh_pu,
188 const _iq angleLf_pu,
190 const _iq angleHf_pu,
191 const _iq freqHf_pu);
205 #endif // end of _AFSEL_H_ definition
Contains the public interface to the types definitions.
void AFSEL_setFreqHigh_pu(AFSEL_Handle handle, const _iq freq)
Sets the frequency at which the HF estimator takes over angle and freq.
static void AFSEL_setCountHysThreshold(AFSEL_Handle handle, const uint16_t value)
Sets the threshold counter.
void AFSEL_run(AFSEL_Handle handle)
Run the afsel.
void AFSEL_enable(AFSEL_Handle handle)
Enable the afsel module.
struct _EST_Obj_ * EST_Handle
Defines the estimator (EST) handle.
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.
AFSEL_Handle AFSEL_init(void)
Initializes the afsel module.
_iq AFSEL_getAngle_pu(AFSEL_Handle handle)
Gets the angle that will currently be used for FOC.
Contains the public interface to the estimator (EST) module routines.
_iq AFSEL_getIqSlope(AFSEL_Handle handle)
Gets the current Iq trajectory slope.
void AFSEL_updateState(AFSEL_Handle handle)
Updates the state, called outside of the ISR.
bool AFSEL_isDisabled(AFSEL_Handle handle)
Is the afsel module disabled?
void AFSEL_disable(AFSEL_Handle handle)
Disable the afsel module.
Contains the public interface to the math (MATH) module routines.
_iq AFSEL_getFreq_pu(AFSEL_Handle handle)
Gets the speed that will currently be used.
bool AFSEL_isEnabled(AFSEL_Handle handle)
Is the afsel module enabled?
struct IPD_HFI_Obj * IPD_HFI_Handle
Defines the IPD_HFI handle.
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.
void AFSEL_setFreqLow_pu(AFSEL_Handle handle, const _iq freq)
Sets the frequency at which the LF estimator takes over angle and freq.
_iq AFSEL_getIqMax(AFSEL_Handle handle)
Gets the Iq maximum value currently used.
struct _AFSEL_Obj_ * AFSEL_Handle
Defines the AFSEL Torque handle.