3.3.25.2 mcTorI_TorqueControlEnable

C

/* Enable torque control module */
void  mcTorI_TorqueControlEnable( tmcTor_Parameters_s * const pParameters )	

Summary

Enables the torque control module.

Description

This function enables the torque control module by linking the state variables and initializing the module if necessary. It checks the module initialization state, initialize the module if not initialized and then enables the control module using state variables and sets the enable flag.

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the torque control module parameter structure

Returns

None

Example

// Define the torque module data structure
tmcTor_Parameters_s torqParameters;

/** Enable torque control module */
mcTorI_TorqueControlEnable(&torqParameters);
    

Remarks

None.