TNeo  BETA v1.08-11-g97e5a6d
Data Fields
TN_Timer Struct Reference

Detailed Description

Timer.

Definition at line 203 of file tn_timer.h.

Data Fields

enum TN_ObjId id_timer
 id for object validity verification. More...
 
struct TN_ListItem timer_queue
 A list item to be included in the system timer queue.
 
TN_TimerFuncfunc
 Function to be called by timer.
 
void * p_user_data
 User data pointer that is given to user-provided func.
 
TN_TickCnt start_tick_cnt
 Available if only TN_DYNAMIC_TICK is set. More...
 
TN_TickCnt timeout
 Available if only TN_DYNAMIC_TICK is set. More...
 
TN_TickCnt timeout_cur
 Available if only TN_DYNAMIC_TICK is not set. More...
 

Field Documentation

◆ id_timer

enum TN_ObjId TN_Timer::id_timer

id for object validity verification.

This field is in the beginning of the structure to make it easier to detect memory corruption.

Definition at line 208 of file tn_timer.h.

◆ start_tick_cnt

TN_TickCnt TN_Timer::start_tick_cnt

Available if only TN_DYNAMIC_TICK is set.

Tick count value when timer was started

Definition at line 224 of file tn_timer.h.

◆ timeout

TN_TickCnt TN_Timer::timeout

Available if only TN_DYNAMIC_TICK is set.

Timeout value (it is set just once, and stays unchanged until timer is expired, cancelled or restarted)

Definition at line 230 of file tn_timer.h.

◆ timeout_cur

TN_TickCnt TN_Timer::timeout_cur

Available if only TN_DYNAMIC_TICK is not set.

Current (left) timeout value

Definition at line 238 of file tn_timer.h.


The documentation for this struct was generated from the following file: