68 #if defined(RKH_USE_TRC_SENDER)
87 #define RKH_TIM_TICK(_sender) rkh_tmr_tick(_sender)
89 #define RKH_TIM_TICK(dummy_) rkh_tmr_tick()
133 #if RKH_CFG_TMR_HOOK_EN == RKH_ENABLED
134 #define RKH_TMR_INIT(t_, e_, th_) \
135 rkh_tmr_init_((t_), (e_), (th_))
137 #define RKH_TMR_INIT(t_, e_, th_) \
138 rkh_tmr_init_((t_), (e_))
171 #define RKH_TMR_ONESHOT(t, sma, itick) \
173 rkh_tmr_start(t, sma, itick)
210 #define RKH_TMR_PERIODIC(t, sma, itick, per) \
211 (t)->period = (per); \
212 rkh_tmr_start((t), (sma), (itick))
232 #if RKH_CFG_TMR_SIZEOF_NTIMER == 8
234 #elif RKH_CFG_TMR_SIZEOF_NTIMER == 16
236 #elif RKH_CFG_TMR_SIZEOF_NTIMER == 32
334 #if RKH_CFG_TMR_HOOK_EN == RKH_ENABLED
342 #if RKH_CFG_TMR_GET_INFO_EN == RKH_ENABLED
349 #if RKH_CFG_TMR_HOOK_EN == RKH_ENABLED
430 #if defined(RKH_USE_TRC_SENDER)
void rkh_tmr_start(RKH_TMR_T *t, const struct RKH_SMA_T *sma, RKH_TNT_T itick)
Start a timer.
void rkh_tmr_clear_info(RKH_TMR_T *t)
Clear performance information for a particular software timer.
void rkh_tmr_tick(const void *const sender)
Keep tracks and updates the started timers.
Describes the SMA (active object in UML).
Represents events without parameters.
Defines the data structure into which the performance information for software timers is stored...
Defines the data structure used to maintain information that allows the timer-handling facility to up...
RKH engine interface.This header file is directly included in RKH interface file, rkh...
rui8_t RKH_TNT_T
This data type defines the dynamic range of the time delays measured in clock ticks (maximum number o...
void rkh_tmr_get_info(RKH_TMR_T *t, RKH_TINFO_T *info)
Retrieves performance information for a particular software timer.
RKH_TNT_T ntick
Tick down-counter.
void rkh_tmr_init_(RKH_TMR_T *t, const RKH_EVT_T *e, RKH_THK_T thk)
Initializes the previously allocated timer structure RKH_TMR_T.
void rkh_tmr_stop(RKH_TMR_T *t)
Stops a running timer.
void(* RKH_THK_T)(void *t)
The prototype of callback function (hook) to call when the timer expires.
RKH_TNT_T period
Number of ticks for all timer expirations after the first (expiration period). A zero for this parame...
const struct RKH_SMA_T * sma
State machine application (a.k.a Active Object) that receives the timer event.