Jump to main content

##

# 2.80.1 PDECx_QDECInitialize Function

## C

    void PDECx_QDECInitialize ( void ); // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.

## Summary

Initializes given instance of PDEC peripheral in quadrature mode.

## Description

This function initializes given instance of PDEC peripheral in quadrature mode with options configured in MCC GUI.

## Precondition

MCC GUI should be configured with the desired options.

## Parameters

None.

## Returns

None.

## Example

    PDEC_QDECInitialize();

## Remarks

This function must be called before any other PDEC function is called. This function is normally called only be called once during system initialization.