3.3.25.5 mcTorI_TorqueControlDisable
C
/* Disable torque control module */ void mcTorI_TorqueControlDisable( tmcTor_Parameters_s * const pParameters )
Summary
Disables the torque control module.
Description
This function disables the torque control module by linking the state variables and resetting the module if necessary. It checks the module initialization state, resets the module if it is initialized, and then disable the control module using state variables and clear the enable flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the torque control module parameter structure |
Returns
None
Example
// Define the torque module data structure
tmcTor_Parameters_s torqParameters;
/** Disable torque control module */
mcTorI_TorqueControlDisable(&torqParameters);
Remarks
None.