1.2.11.4.22 SYS_TIME_TimerStop Function
1.2.11.4.22 C
SYS_TIME_RESULT SYS_TIME_TimerStop ( SYS_TIME_HANDLE handle )
1.2.11.4.22 Summary
Stops a running software timer.
1.2.11.4.22 Description
This function stops a previously created and running software timer (i.e., the given timer's counter will stop incrementing).
1.2.11.4.22 Precondition
The SYS_TIME_Initialize must have been called and a valid handle to the software timer to be stopped must be available.
1.2.11.4.22 Parameters
| Parameters | Description |
|---|---|
| handle | Handle to a software timer instance |
1.2.11.4.22 Returns
SYS_TIME_SUCCESS if the operation succeeds.
SYS_TIME_ERROR if the operation fails (due, for example, to an invalid handle).
1.2.11.4.22 Example
Given a "timer" handle, the following example will stops the timer's counter running.
SYS_TIME_TimerStop(timer);
1.2.11.4.22 Remarks
Calling SYS_TIME_TimerStop on a timer that is not running will have no affect and will return SYS_TIME_SUCCESS.
