2.91.8 QEIx_CounterModeSet Function

C

/* x refers to the instance number */

inline static void QEIx_CounterModeSet(QEI_MODE mode)

Summary

Sets the QEI Counter mode.

Description

This inline function sets one of the following counter modes:

1. Free Running Mode

2. Reset Mode

3. Modulo Count Mode

Precondition

QEI peripheral should be initialized and enabled properly.

Parameters

ParamDescription
modeSets the QEI counter mode

Returns

None.

Example

QEI1_Initialize();
QEI1_Enable();
QEI1_CounterModeSet(QEI_MODE_FREE_RUNNING);

Remarks

None.