Jump to main content

##

# 3.3.26.5 mcPosI_PositionControlDisable

## C

    /* Disable position control module */
    void  mcPosI_PositionControlDisable( tmcPos_Parameters_s * const pParameters )

## Summary

Disables the position control module.

## Description

This function disables the position 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 position control module parameter structure

## Returns

None

## Example

    // Define the position control module data structure
    tmcPos_Parameters_s posParameters;

    /** Disable position control module */
    mcPosI_PositionControlDisable(&posParameters);

## Remarks

None.