zStatus zTimer_Start(zTimer timer, z64u period, zTimerElapsedCallback callback, zHandle context);
|
Parameters |
Description |
|
zTimer timer |
zTimer object. |
|
z64u period |
Callback period, in microseconds. |
|
zTimerElapsedCallback callback |
Callback function. |
|
zHandle context |
User context handle supplied to the callback function. |
Starts timer callbacks at the specified period.
It is safe to call this function from within a timer callback. It is valid to call Start multiple times without first calling Stop, in order to change the timer period or callback function.
Each subsequent timer period after the first callback is measured relative to the end of the previous timer callback.
zTimer.h