1.35.16.3 TCx_CHy_TimerPeriodHasExpired Function

C

/* x = TC instance number, y= channel number */
bool TCx_CHy_TimerPeriodHasExpired ( void );

Summary

Checks whether timer period is elapsed

Description

This function checks the status of the timer period interrupt.

Precondition

TCx_CHy_TimerInitialize() function must have been called first for the given channel.

Parameters

None

Returns

  • True - timer period has expired

  • False - timer period is not expired

Example

bool status;

TC0_CH1_TimerInitialize();
status = TC0_CH1_TimerPeriodHasExpired();

Remarks

This function is available only in polling mode