Timer
[Framework]

Collaboration diagram for Timer:


Files

file  fip_timer.c
 FIP Timer Functions.
file  fip_timer.h
 FIP Timer Functions Header.

Defines

#define fip_timer_isExpired32(expireTime, currentTime)   (((expireTime) & 0x01) && ((currentTime) > (expireTime)))
#define TIMER_EXPIRED   (1)

Typedefs

typedef uint16_t fip_timer16S_t
 FIP's timer type holds the expiration time of a timer.

Functions

fip_timer32mS_t fip_timer_getExpireTime32miliS (uint32_t time)
 Get.

Define Documentation

#define fip_timer_isExpired32 ( expireTime,
currentTime   )     (((expireTime) & 0x01) && ((currentTime) > (expireTime)))

Todo:
Fix wrap-around by setting bit 1 in all timers

Referenced by fip_if6_periodic(), fip_nd6_periodicIf(), fip_nd6_periodicUnicast(), and fip_sixlowpan_process().

#define TIMER_EXPIRED   (1)


Typedef Documentation

typedef uint16_t fip_timer16S_t

FIP's timer type holds the expiration time of a timer.

Can be checked with fip_timer_isExpired32 to discover if the timer has expired or not. The expiration values have several special types. All zeros indicates an infinite time-out. The lowest bit is used as part of the roll-over detection.


Function Documentation

fip_timer32mS_t fip_timer_getExpireTime32miliS ( uint32_t  time  ) 

Get.

Parameters:
time 
Returns:

References fip_hostInterface_getMiliSeconds32().

Referenced by fip_if_init(), fip_ip_send(), fip_nd6_periodicIf(), fip_nd6_periodicUnicast(), fip_nd6_processNA(), and fip_sixlowpan_llInput().

Here is the call graph for this function:


Generated on Wed Dec 8 13:00:29 2010 for FIP by  doxygen 1.5.7.1