3.3.24.1 mcSpeI_SpeedControlInit
C
/* Initialize speed control module */ void mcSpeI_SpeedControlInit( tmcSpe_Parameters_s * const pParameters )
Summary
Initializes the speed control module
Description
This function initializes the speed control module by setting up the necessary parameters and linking state variables. It updates the state variable structure, configures the module parameters using the parameter module structure, sets the PI control parameters, and sets the initialization flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the speed control module parameter structure |
Returns
None
Example
// Define the speed control module data structure
tmcSpe_Parameters_s speedParameters;
/** Initialize parameters */
mcSpeI_SpeedControlInit(&speedParameters);;
Remarks
None.