The Sequence Toolkit
www.sequence-toolkit.com
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Typedefs
stk_timer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STK_TIMER_EXPIRED   1
 
#define STK_TIMER_CANCELLED   2
 

Typedefs

typedef struct stk_timer_set_stct stk_timer_set_t
 
typedef void * stk_timer_t
 
typedef int stk_timer_cb_type
 
typedef void(* stk_timer_cb )(stk_timer_set_t *timer_set, stk_timer_t *timer, int id, void *userdata, void *user_setdata, stk_timer_cb_type cb_type)
 

Detailed Description

This header provides the typedefs and definitions for the timer subsystem.

Macro Definition Documentation

#define STK_TIMER_CANCELLED   2

Timer was Cancelled

#define STK_TIMER_EXPIRED   1

Timer has Expired

Typedef Documentation

typedef void(* stk_timer_cb)(stk_timer_set_t *timer_set, stk_timer_t *timer, int id, void *userdata, void *user_setdata, stk_timer_cb_type cb_type)

The callback signature to be used for timer callbacks

A callback type indicates what event the callback is for (cancelled/expired etc).

See Also
STK_TIMER_EXPIRED

The timer set consitutes a grouping of related timers. Applications may choose to group timers as seen fit and may use as few as one set.

A generic handle to a scheduled timer>