3.3.18.10 mcFlxI_FluxWeakeningDisable
C
/* Disable flux weakening module */ void mcFlxI_FluxWeakeningDisable( tmcFlx_Parameters_s * const pParameters )
Summary
Disables the flux weakening module.
Description
This function disables the flux weakening module by linking the state variables and resetting the module if necessary. It checks the module's initialization state, resets the module if it is initialized, and then disables the control module using the state variables. Finally, it clears the enable flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the flux control module structure, which includes the MTPA, flux weakening, and flux control parameters. |
Returns
None
Example
// Define the flux module data structure
tmcFlx_Parameters_s fluxParameters;
/** Disable flux weakening module */
mcFlxI_FluxWeakeningDisable(&fluxParameters);
Remarks
None.