1.2.11.4.8 SYS_TIME_DelayIsComplete Function
1.2.11.4.8 C
bool SYS_TIME_DelayIsComplete ( SYS_TIME_HANDLE handle )
1.2.11.4.8 Summary
Determines if the given delay timer has completed.
1.2.11.4.8 Description
This function determines if the requested delay is completed or is still in progress.
1.2.11.4.8 Precondition
A delay request must have been created using either the SYS_TIME_DelayMS or SYS_TIME_DelayUS functions.
1.2.11.4.8 Parameters
| Parameters | Description |
|---|---|
| handle | A SYS_TIME_HANDLE value provided by either SYS_TIME_DelayMS or SYS_TIME_DelayUS functions |
1.2.11.4.8 Returns
True - If the delay has completed.
False - If the delay has not completed.
1.2.11.4.8 Example
// Check if the delay has expired.
if (SYS_TIME_DelayIsComplete(timer) != true)
{
// Delay has not expired
}
1.2.11.4.8 Remarks
SYS_TIME_DelayIsComplete must be called to poll the status of the delay requested through SYS_TIME_DelayMS or SYS_TIME_DelayUS.
SYS_TIME_DelayIsComplete must not be used to poll the status of a periodic timer. Status of a periodic timer may be polled using the SYS_TIME_TimerPeriodHasExpired routine.
