3.3.18.8 mcFlxI_FluxWeakeningEnable

C


/* Enable flux weakening module */
void  mcFlxI_FluxWeakeningEnable( tmcFlx_Parameters_s * const pParameters )	

Summary

Enables the flux weakening module.

Description

This function enables the flux weakening module by linking the state variables and initializing the module if necessary. It checks the module's initialization state, initializes the module if it is not already initialized, and then enables the control module using the state variables. Finally, it sets the enable flag.

Precondition

None.

Parameters

ParamDescription
pParametersA 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 flux control module */
mcFlxI_FluxWeakeningEnable(&fluxParameters);
    

Remarks

None.