eLooM for STM32 application
v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
|
Definition of the IEventSrc virtual functions. More...
#include "services/eloom_sysbase.h"
Go to the source code of this file.
Data Structures | |
struct | _IEventSrc_vtbl |
struct | _IEventSrc |
Functions | |
SYS_DEFINE_STATIC_INLINE sys_error_code_t | IEventSrcInit (IEventSrc *_this) |
SYS_DEFINE_STATIC_INLINE sys_error_code_t | IEventSrcAddEventListener (IEventSrc *_this, IEventListener *pListener) |
SYS_DEFINE_STATIC_INLINE sys_error_code_t | IEventSrcRemoveEventListener (IEventSrc *_this, IEventListener *pListener) |
SYS_DEFINE_STATIC_INLINE uint32_t | IEventSrcGetMaxListenerCount (const IEventSrc *_this) |
SYS_DEFINE_STATIC_INLINE sys_error_code_t | IEventSrcSendEvent (const IEventSrc *_this, const IEvent *pxEvent, void *pvParams) |
Definition of the IEventSrc virtual functions.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
|
inline |
Register a listener with this event source.
_this | [IN] specifies a pointer to an IEventSrc object. |
pListener | [IN] specifies a pointer to an IEventListener object. |
|
inline |
Get the maximum number of IEventListener that can be registered with this event source.
_this | [IN] specifies a pointer to an IEventSrc object. |
|
inline |
Initialize an event source. This function should be called after the
_this | [IN] specifies a pointer to an IEventSrc object. |
|
inline |
Remove a listener from this event source,
_this | [IN] specifies a pointer to an IEventSrc object. |
pListener | [IN] specifies a pointer to an IEventListener object. |
|
inline |
Send an IEvent to all the registered IEventListener.
_this | [IN] specifies a pointer to an IEventSrc object. |
pxEvent | [IN] specifies a pointer to an IEvent object. |
pvParams | [IN] specifies a generic pointer that can be used by the application extend the semantic Event design pattern. |