Jump to main content

##

# 2.123.3 TMRx_PeriodHasExpired Function

## C

    /* x = TMR instance number */
    bool TMRx_PeriodHasExpired(void);

## Summary

Checks period expiration in polling mode.

## Description

This function returns the status of expiration of period.

## Precondition

Timer should be initialized and enabled.

## Parameters

None.

## Returns

true: Period has expired

false: Period has not expired

## Example

    TMR1_Initialize();
    TMR1_Start();
    while(TMR1_PeriodHasExpired()==false);
    /*Perform operations after period is match has occurred */

## Remarks

None.