eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
AEventSrc.h
Go to the documentation of this file.
1
26#ifndef INCLUDE_EVENTS_AEVENTSRC_H_
27#define INCLUDE_EVENTS_AEVENTSRC_H_
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33
34#include "events/IEventSrc.h"
36
37
38#ifndef AEVENT_SRC_CFG_MAX_LISTENERS
39#define AEVENT_SRC_CFG_MAX_LISTENERS 2U
40#endif
41
42
46typedef struct _AEventSrc AEventSrc;
47
51struct _AEventSrc {
52 IEventSrc super;
53
57 IEventListener *m_pxListeners[AEVENT_SRC_CFG_MAX_LISTENERS];
58
62 void *m_pxOwner;
63};
64
65
66// Public API declaration
67//***********************
68
77
83
84// Inline functions definition
85// ***************************
86
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif /* INCLUDE_EVENTS_AEVENTSRC_H_ */
void * AEvtSrcGetOwner(IEventSrc *_this)
sys_error_code_t AEvtSrcSetOwner(IEventSrc *_this, void *pxOwner)
Event Source interface.
Definition of the IEventSrc virtual functions.
Definition AEventSrc.h:51
void * m_pxOwner
Definition AEventSrc.h:62
IEventListener * m_pxListeners[AEVENT_SRC_CFG_MAX_LISTENERS]
Definition AEventSrc.h:57
Definition IEventListener_vtbl.h:49
Definition IEventSrc_vtbl.h:49
uint16_t sys_error_code_t
Definition syserror.h:41