3.3.24.2 mcSpeI_SpeedControlEnable
C
/* Enable speed control module */ void mcSpeI_SpeedControlEnable( tmcSpe_Parameters_s * const pParameters )
Summary
Enables the speed control module.
Description
This function enables the speed control module by linking the state variables, initializing the module if necessary. It checks the module initialization state and initialize the module if not initialized. Then it enables the control module using state variables and sets 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;
/** Enable speed control module */
mcSpeI_SpeedControlEnable(&speedParameters);
Remarks
None.