eLooM for STM32 application
v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
|
Event Source interface. More...
#include "events/IEvent.h"
#include "events/IEventListener.h"
#include "events/IEventListener_vtbl.h"
Go to the source code of this file.
Functions | |
static sys_error_code_t | IEventSrcInit (IEventSrc *_this) |
static sys_error_code_t | IEventSrcAddEventListener (IEventSrc *_this, IEventListener *pListener) |
static sys_error_code_t | IEventSrcRemoveEventListener (IEventSrc *_this, IEventListener *pListener) |
static uint32_t | IEventSrcGetMaxListenerCount (const IEventSrc *_this) |
static sys_error_code_t | IEventSrcSendEvent (const IEventSrc *_this, const IEvent *pxEvent, void *pvParams) |
Event Source interface.
An Event Source object provides the API to add / remove Event Listener objects, and to notify the registered listeners.
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.
|
inlinestatic |
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. |
|
inlinestatic |
Get the maximum number of IEventListener that can be registered with this event source.
_this | [IN] specifies a pointer to an IEventSrc object. |
|
inlinestatic |
Initialize an event source. This function should be called after the
_this | [IN] specifies a pointer to an IEventSrc object. |
|
inlinestatic |
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. |
|
inlinestatic |
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. |