Jump to main content

##

# 2.91.16 QEIx_PositionCapture16bitGet Function

## C

    /* x refers to the instance number */

    inline static uint16_t QEIx_PositionCapture16bitGet(void)

## Summary

Returns the 16-bit position capture value.

## Description

This inline function returns the 16-bit position capture value from QEIxGEC position count capture register.

## Precondition

QEI peripheral should be initialized and enabled properly.

## Parameters

None.

## Returns

Returns the LSB 16 bits of position capture value.

## Example

    QEI1_Initialize();
    QEI1_Enable();
    QEI1_PositionCapture16bitGet();

## Remarks

None.