appTimer.h File Reference

Declarations of the appTimer interface. More...

#include <halAppClock.h>
#include <timer.h>

Go to the source code of this file.

Typedefs

typedef Timer_t HAL_AppTimer_t
 fields of structure:
uint32_t interval - timer firing interval. Interval must be more than 10 ms.(set by user)
TimerMode_t mode - timer work mode (set by user). Must be chosen from:
TIMER_REPEAT_MODE
TIMER_ONE_SHOT_MODE
void (*callback)() - pointer to timer callback function (set by user).


Functions

INLINE uint32_t HAL_GetSystemTime (void)
 Get system time.
int HAL_StartAppTimer (HAL_AppTimer_t *appTimer)
 Starts to count an interval (starts user timer).
int HAL_StopAppTimer (HAL_AppTimer_t *appTimer)
 Stops the user timer.


Detailed Description

Declarations of the appTimer interface.

Definition in file appTimer.h.


Typedef Documentation

typedef Timer_t HAL_AppTimer_t

fields of structure:
uint32_t interval - timer firing interval. Interval must be more than 10 ms.(set by user)
TimerMode_t mode - timer work mode (set by user). Must be chosen from:
TIMER_REPEAT_MODE
TIMER_ONE_SHOT_MODE
void (*callback)() - pointer to timer callback function (set by user).

Definition at line 41 of file appTimer.h.


Function Documentation

INLINE uint32_t HAL_GetSystemTime ( void   ) 

Get system time.

Returns:
time since power up in milliseconds.

Definition at line 30 of file appTimer.h.

int HAL_StartAppTimer ( HAL_AppTimer_t appTimer  ) 

Starts to count an interval (starts user timer).

Parameters:
[in] appTimer - pointer to the timer structure (HAL_AppTimer_t is typedef Timer_t)
Returns:
-1 - pointer is NULL 0 - success

int HAL_StopAppTimer ( HAL_AppTimer_t appTimer  ) 

Stops the user timer.

Parameters:
[in] appTimer - pointer to the timer structure.
Returns:
-1 - there is no appTimer started or pointer is NULL 0 - success


Generated on Wed Apr 9 17:48:40 2008 for ZigBeeNet Stack Documentation by  doxygen 1.5.1-p1