3.3.24.6 mcSpeI_SpeedControlDisable
C
/* Disable speed control module */ void mcSpeI_SpeedControlDisable( tmcSpe_Parameters_s * const pParameters )
Summary
Disables the speed control module.
Description
This function disables the speed 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 by updating the state variables and clearing the enable flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the speed control module parameter structure |
Returns
None
Example
// Define the speed module data structure
tmcSpe_Parameters_s speedParameters;
/** Disable speed control module */
mcSpeI_SpeedControlDisable(&speedParameters);
Remarks
None.