3.3.18.2 mcFlxI_FluxControlEnable
C
/* Enable flux control module */ void mcFlxI_FluxControlEnable( tmcFlx_Parameters_s * const pParameters )
Summary
Enables the flux control module.
Description
This function enables the flux control module by linking the state variables, initializing the module if necessary, and enabling the flux control module. It checks the module initialization state, initialize the module if not already initialized and then enables the control module using state variables and sets the enable flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the flux control module parameter structure. |
Returns
None
Example
// Define the flux module data structure
tmcFlx_Parameters_s fluxParameters;
/** Enable flux control module */
mcFlxI_FluxControlEnable(&fluxParameters);;
Remarks
None.