2.91.15 QEIx_PhaseInputSwappedSet Function

C

/* x refers to the instance number */

inline static void QEIx_PhaseInputSwappedSet(bool swapEnabled)

Summary

Facilitates swapping of QEA and QEB.

Description

This function enables swapping of QEA and QEB input pins before entering decoder logic.

Precondition

QEI peripheral should be initialized and enabled properly.

Parameters

ParamDescription
swapEnabledspecifies whether QEA and QEB pins need to be swapped prior to quadrature decoder logic

Returns

None.

Example

QEI1_Initialize();
QEI1_Enable();
QEI1_PhaseInputSwappedSet(true);

Remarks

None.