Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
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.

Parameters
timerkPeriodic object.
periodCallback period, in microseconds.
onElapsedCallback function.
contextUser context handle supplied to the callback function.
Returns
Operation status.