1.29.26.21 TCx_TimerPeriodHasExpired Function

C

/* x = TC instance number */
bool TCx_TimerPeriodHasExpired( void );

Summary

Checks whether timer period is elapsed.

Description

This function checks the status of the timer period interrupt.

Precondition

TCx_TimerInitialize() function must have been called first.

Parameters

None.

Returns

Timer period elapsed status.

Example

bool timerPeriodStatus = false;
TC0_TimerInitialize();
timerPeriodStatus = TC0_TimerPeriodHasExpired();

Remarks

None.