RKH
rkhfwk_dynevt.h File Reference

Specifies the interface of dynamic event support. More...

#include "rkhitl.h"
#include "rkhfwk_evtpool.h"
Include dependency graph for rkhfwk_dynevt.h:

Go to the source code of this file.

Macros

#define RKH_ALLOC_EVT(et, e, sender_)   (et *)rkh_fwk_ae((RKH_ES_T)sizeof(et),(RKH_SIG_T)(e), sender_)
 This macro dynamically creates a new event of type et with its signal. More...
 
#define RKH_FWK_GC(e, sender_)    rkh_fwk_gc(e, sender_)
 Recycle a dynamic event. More...
 
#define RKH_FWK_RSV(e)    rkh_fwk_reserve(e)
 Reserve the dynamic event to be recycled. More...
 
#define RKH_SET_STATIC_EVENT(ev_obj, ev_sig)   MK_SET_EVT(ev_obj, ev_sig)
 This macro initialize an event e with es signal and establishes it as one static event. More...
 
#define RKH_STATIC_EVENT(ev_obj, ev_sig)   MK_EVT(ev_obj, ev_sig)
 This macro declares and initializes the event structure ev_ob with ev_sig signal number and establishes it as one static event. More...
 
#define RKH_ROM_STATIC_EVENT(ev_obj, ev_sig)   MK_ROM_EVT(ev_obj, ev_sig)
 This macro declares and initializes the event structure ev_ob with ev_sig signal number and establishes it as one static event. More...
 
#define RKH_INIT_STATIC_EVT(ev_sig)   MK_EVT_STRUCT(ev_sig)
 Initializes the attibutes of a RKH's event object structure. More...
 

Functions

void rkh_dynEvt_init (void)
 Initializes the dynamic event manager.
 
void rkh_fwk_registerEvtPool (void *sstart, rui32_t ssize, RKH_ES_T esize)
 Registers a new event pool into the event pool list. More...
 
RKH_EVT_Trkh_fwk_ae (RKH_ES_T esize, RKH_SIG_T e, const void *const sender)
 Allocates an event from the previously created event pool. More...
 
void rkh_fwk_gc (RKH_EVT_T *e, const void *const sender)
 Recycle a dynamic event. More...
 
void rkh_fwk_reserve (RKH_EVT_T *e)
 Reserve the dynamic event to be recycled. More...
 

Detailed Description

Specifies the interface of dynamic event support.

Definition in file rkhfwk_dynevt.h.