eLooM for STM32 application
v3.3.0
|
Application error manager delegate. More...
#include "services/ApplicationContext.h"
#include "services/IErrorFirstResponder.h"
#include "services/IErrorFirstResponderVtbl.h"
Go to the source code of this file.
Typedefs | |
typedef struct _IApplicationErrorDelegate | IApplicationErrorDelegate |
Functions | |
static sys_error_code_t | IAEDInit (IApplicationErrorDelegate *_this, void *pParams) |
static sys_error_code_t | IAEDOnStartApplication (IApplicationErrorDelegate *_this, ApplicationContext *pxContext) |
static sys_error_code_t | IAEDProcessEvent (IApplicationErrorDelegate *_this, ApplicationContext *pxContext, SysEvent xEvent) |
static sys_error_code_t | IAEDOnNewErrEvent (IApplicationErrorDelegate *_this, SysEvent xEvent) |
static boolean_t | IAEDIsLastErrorPending (IApplicationErrorDelegate *_this) |
static sys_error_code_t | IAEDAddFirstResponder (IApplicationErrorDelegate *_this, IErrFirstResponder *pFirstResponder, uint8_t nPriority) |
static sys_error_code_t | IAEDRemoveFirstResponder (IApplicationErrorDelegate *_this, IErrFirstResponder *pFirstResponder) |
static uint8_t | IAEDGetMaxFirstResponderPriority (const IApplicationErrorDelegate *_this) |
static void | IAEDResetCounter (IApplicationErrorDelegate *_this) |
Application error manager delegate.
This interface is implemented by a application specific object that is in charge to manage the error events. The application can implement the SysGetErrorDelegate() function to provide its own IApplicationErrorDelegate.
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.
typedef struct _IApplicationErrorDelegate IApplicationErrorDelegate |
Create type name for _IApplicationErrorDelegate.
|
inlinestatic |
Add a first responder object. The first responders are grouped in a priority set. Zero is the highest priority. If an IErrFirstResponder object with the same priority was already added, then it is replaced with the new one.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
pFirstResponder | [IN] specifies a pointer to the a first responder object. If it is NULL then the IErrFirstResponder with nPriority priority is removed from the application error delegate. |
nPriority | [IN] specifies the priority of the error first responder. Zero is the highest priority. |
|
inlinestatic |
Get the highest priority allowed for a first responder object.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
|
inlinestatic |
Initialize the driver. This method should be used by a task object during the hardware initialization process.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
pParams | specifies a pointer to a subclass defined initialization parameters. |
|
inlinestatic |
Used by the AED to notify the system if the last error has been recovered or not.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
|
inlinestatic |
The INIT task call this method as soon as a new error event is posted by the application. This allows the application error delegate to provide a first respond to critical errors. The application error delegate should notify the first responder objects starting from the highest priority one.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
xEvent | xEvent [IN] specifies an error event |
|
inlinestatic |
Called by the system just before the control is released to the application tasks.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
pxContext | [IN] specifies a pointer to the application context. |
|
inlinestatic |
The INIT task uses this function to deliver an error event to the application error manager delegate object.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
pxContext | [IN] specifies a pointer to the application context. |
xEvent | [IN] specifies an error event |
|
inlinestatic |
Remove a first responder object rom the application error delegate.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |
pFirstResponder | [IN] specifies a pointer to the a first responder object to be removed. |
|
inlinestatic |
Reset the counter of the AED. Usually an AED use some kind of timeout to check that all managed tasks are working fine. A task should call this method before a critical operation, that is for example a write operation in FLASH or EEPROM, or a long critical section. For convenience the managed task interface has a function IMTResetAEDCounter() that can be used by a task instead of call directly this function.
_this | [IN] specifies a pointer to an IApplicationErrorDelegate object. |