Jump to main content

##

# 2.91.20 QEIx_PositionCaptureSet Function

## C

    /* x refers to the instance number */

    inline static void QEIx_PositionCaptureSet(uint32_t initValue)

## Summary

Initializes the 32 bit position capture register value.

## Description

This inline function writes to the 32 bit QEI1GEC register.

## Precondition

QEI peripheral should be initialized and enabled properly.

## Parameters

Param | Description
--- | ---
initValue | 32 bit position capture register value

## Returns

None.

## Example

    QEI1_Initialize();
    QEI1_Enable();
    QEI1_PositionCaptureSet();

## Remarks

None.