Zen API
zTimer_Start
C
zStatus zTimer_Start(zTimer timer, z64u period, zTimerElapsedCallback callback, zHandle context);
Parameters
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. 
Description

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.

File

zTimer.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.