2.91.12 QEIx_IMVGatedValueSet Function
C
/* x = QEI instance number */
inline static void QEIx_IMVGatedValueSet(QEI_IMV_STATE state)
Summary
Sets the QEI Index Match Value Configuration.
Description
This inline function sets on which configuration of QEA and QEB an index match event will occur. The configuration options to choose from are
00: QEA and QEB are both 0
01: QEA is 1 and QEB is 0
10: QEA is 0 and QEb is 1
11: QEA and QEB are both 1
Precondition
QEI peripheral should be initialized and enabled properly.
Parameters
Param | Description |
---|---|
mode | Sets the QEI Index Match Value |
Returns
None.
Example
QEI1_Initialize(); QEI1_Enable(); QEI1_IMVGatedValueSet(QEI_IMV_STATE_A0B0);
Remarks
None.