3.3.18.15 mcFlxI_MTPADisable
C
/* Disable MTPA module */ void mcFlxI_MTPADisable( tmcFlx_Parameters_s * const pParameters )
Summary
Disables the MTPA module.
Description
This function disables the MTPA module by linking the state variables, resetting the module if necessary, and clearing the enable flag. It checks the module's initialization state, performs a reset if the module is initialized, and then disables the control module using the state variables.
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 MTPA module */
mcFlxI_MTPADisable(&fluxParameters);
Remarks
None.