Jump to main content

##

# 3.3.26.2 mcPosI_PositionControlEnable

## C

    /* Enable position control module */
    void  mcPosI_PositionControlEnable( tmcPos_Parameters_s * const pParameters )

## Summary

Enables the position control module.

## Description

This function enables the position control module by linking the state variables and initializing the module if necessary. It checks the module initialization state, initialize the module if not initialized, and then enable the control module using state variables and sets the enable flag.

## Precondition

None.

## Parameters

Param | Description
--- | ---
pParameters | A pointer to the position control module parameter structure.

## Returns

None

## Example

    // Define the position module data structure
    tmcPos_Parameters_s posParameters;

    /** Enable position control module */
    mcPosI_PositionControlEnable(&posParameters);

## Remarks

None.