2.91.21 QEIx_PositionCount16bitRead Function
C
/* x refers to the instance number */
inline static uint16_t QEIx_PositionCount16bitRead(void)
Summary
This inline function returns the 16-bit position count value.
Description
This function reads the 16 LSB value from the POSxCNT register.
Precondition
QEI peripheral should be initialized and enabled properly.
Parameters
None.
Returns
Returns the LSB 16 bits of the QEIx position count register.
Example
QEI1_Initialize(); QEI1_Enable(); QEI1_PositionCount16bitRead();
Remarks
None.