Jump to main content

##

# 3.3.24.5 mcSpeI_SpeedControlReset

## C

    /* Reset speed control module */
    void mcSpeI_SpeedControlReset( const tmcSpe_Parameters_s * const pParameters )

## Summary

Resets the speed control module.

## Description

This function resets the speed control module by linking the state variables, resetting the associated PI controller. It achieves by calling the `mcUtils_PiControlReset` function with a zero setpoint and PI controller state structure.

## 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;

    /** Reset speed control module */
    mcTorI_SpeedControlReset(&speedParameters);

## Remarks

None.