3.3.18.13 mcFlxI_MTPAEnable
C
/* Enable MTPA module */ void mcFlxI_MTPAEnable( tmcFlx_Parameters_s * const pParameters )
Summary
Enables the Maximum Torque per Ampere (MTPA) module.
Description
This function enables the MTPA module by linking the state variables, initializing the module if necessary, and setting the enable flag. It verifies the module's initialization state, performs initialization if required, and then enables 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;
/** Enable MTPA module */
void mcFlxI_MTPAEnable(&fluxParameters);;
Remarks
None.