Zen API
|
kStatus kPeriodic_Start | ( | kPeriodic | timer, |
k64u | period, | ||
kPeriodicElapsedFx | onElapsed, | ||
kPointer | context | ||
) |
Starts 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.
timer | kPeriodic object. |
period | Callback period, in microseconds. |
onElapsed | Callback function. |
context | User context handle supplied to the callback function. |