|
DESERT 4.0.0
|
#include <uwUFetch_NODE.h>


Public Member Functions | |
| uwUFetch_NODE_timer (uwUFetch_NODE *m) | |
| virtual | ~uwUFetch_NODE_timer () |
| virtual void | freeze () |
| virtual void | unFreeze () |
| virtual void | stop () |
| virtual void | schedule (double val) |
| bool | isIdle () |
| bool | isRunning () |
| bool | isFroozen () |
| bool | isExpired () |
| bool | isActive () |
| void | resetCounter () |
| void | incrCounter () |
| int | getCounter () |
| double | getDuration () |
Protected Attributes | |
| double | start_time |
| double | left_duration |
| int | counter |
| uwUFetch_NODE *UWUFETCH_TIMER_STATUS | timer_status |
Class that handle the timers of SN or HN
|
inline |
Constructor of the class uwUFetch_NODE_timer
| m | pointer to uwUFetch_NODE class |
|
inlinevirtual |
Destructor of the class uwUFetch_NODE_timer
|
inlinevirtual |
Freeze the timer
References left_duration, start_time, timer_status, uwUFetch_NODE::UWUFETCH_TIMER_STATUS_FROZEN, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_RUNNING.
|
inline |
|
inline |
|
inline |
increment the counter by one value
References counter.
|
inline |
verify if the timer is ACTIVE
References isFroozen(), isRunning(), and timer_status.

|
inline |
verify whether the timer is EXPIRED
References timer_status, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_EXPIRED.
|
inline |
verify if the timer is FROZEN
References timer_status, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_FROZEN.
Referenced by isActive().
|
inline |
verify whether the timer is IDLE
References timer_status, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_IDLE.
|
inline |
verify if the timer is RUNNING
References timer_status, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_RUNNING.
Referenced by isActive().
|
inline |
reset the counter that scan the timer
|
inlinevirtual |
schedule a timer
| double | the duration of the timer |
References left_duration, start_time, timer_status, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_RUNNING.
Referenced by uwUFetch_NODE::BEACON_rx(), uwUFetch_NODE::CBEACON_rx(), uwUFetch_NODE::Phy2MacEndRx(), uwUFetch_NODE::Phy2MacEndTx(), uwUFetch_NODE::Phy2MacEndTx_HN(), uwUFetch_NODE::state_wait_CBEACON(), uwUFetch_NODE::state_wait_CTS(), uwUFetch_NODE::state_wait_first_DATA(), uwUFetch_NODE::state_wait_POLL(), uwUFetch_NODE::state_wait_PROBE(), uwUFetch_NODE::stateIdle_HN(), uwUFetch_NODE::TRIGGER_rx(), and uwUFetch_NODE::TRIGGER_rx_without().
|
inlinevirtual |
Stop the timer
References timer_status, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_IDLE.
|
inlinevirtual |
unFreeze are used after a freezing of the timer. In this case the timer restart from the timer where was freezed
check the state of the timer before sheduling the event. If the timer is set, then the call are aborted
References left_duration, start_time, timer_status, uwUFetch_NODE::UWUFETCH_TIMER_STATUS_FROZEN, and uwUFetch_NODE::UWUFETCH_TIMER_STATUS_RUNNING.
|
protected |
Counter of the timer
Referenced by getCounter(), and incrCounter().
|
protected |
Left duration of the timer
Referenced by freeze(), getDuration(), schedule(), and unFreeze().
|
protected |
Time to start the timer
Referenced by freeze(), schedule(), and unFreeze().
|
protected |
< Pointer to an object of type uwUFetch_NODE Timer status
Referenced by uwUFetch_NODE::uwUFetch_BEACON_timer::expire(), uwUFetch_NODE::uwUFetch_BackOffTimer::expire(), freeze(), isActive(), isExpired(), isFroozen(), isIdle(), isRunning(), schedule(), stop(), and unFreeze().