Jump to main content

##

# 3.6.4 mcIpdI_InitialPositionDetectDisable

## C

    /* Disable initial position detection module */
    void mcIpdI_InitialPositionDetectDisable(tmcIpd_ModuleData_s * const pModule);

## Summary

This function disables the initial position detection module.

## Description

This function disables the initial position detection(IPD) 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 module using state variables and clears the enable flag.

## Precondition

None.

## Parameters

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

## Returns

None.

## Example

    // Define the IPD module data structure
    tmcIpd_ModuleData_s ipdParameters;

    /** Disable IPD module */
    void mcIpdI_InitialPositionDetectDisable(&ipdParameters);

## Remarks

None.