eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
IApplicationErrorDelegateVtbl.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_SERVICES_IAPPLICATIONERRORDELEGATEVTBL_H_
24#define INCLUDE_SERVICES_IAPPLICATIONERRORDELEGATEVTBL_H_
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
31
36
46 sys_error_code_t (*AddFirstResponder)(IApplicationErrorDelegate *_this, IErrFirstResponder *pFirstResponder, uint8_t nPriority);
50};
51
58
63};
64
65// Public API declaration
66//***********************
67
68
69// Inline functions definition
70// ***************************
71
74 return _this->vptr->Init(_this, pParams);
75}
76
79 return _this->vptr->OnStartApplication(_this, pxContext);
80}
81
84 return _this->vptr->ProcessEvent(_this, pxContext, xEvent);
85}
86
89 return _this->vptr->OnNewErrEvent(_this, xEvent);
90}
91
94 return _this->vptr->IsLastErrorPending(_this);
95}
96
99 return _this->vptr->AddFirstResponder(_this, pFirstResponder, nPriority);
100}
101
104 return _this->vptr->RemoveFirstResponder(_this, pFirstResponder);
105}
106
109 return _this->vptr->GetMaxFirstResponderPriority(_this);
110}
111
114 _this->vptr->ResetCounter(_this);
115}
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif /* INCLUDE_SERVICES_IAPPLICATIONERRORDELEGATEVTBL_H_ */
SYS_DEFINE_STATIC_INLINE sys_error_code_t IAEDOnNewErrEvent(IApplicationErrorDelegate *_this, SysEvent xEvent)
Definition IApplicationErrorDelegateVtbl.h:88
SYS_DEFINE_STATIC_INLINE sys_error_code_t IAEDOnStartApplication(IApplicationErrorDelegate *_this, ApplicationContext *pxContext)
Definition IApplicationErrorDelegateVtbl.h:78
SYS_DEFINE_STATIC_INLINE sys_error_code_t IAEDRemoveFirstResponder(IApplicationErrorDelegate *_this, IErrFirstResponder *pFirstResponder)
Definition IApplicationErrorDelegateVtbl.h:103
SYS_DEFINE_STATIC_INLINE sys_error_code_t IAEDProcessEvent(IApplicationErrorDelegate *_this, ApplicationContext *pxContext, SysEvent xEvent)
Definition IApplicationErrorDelegateVtbl.h:83
SYS_DEFINE_STATIC_INLINE void IAEDResetCounter(IApplicationErrorDelegate *_this)
Definition IApplicationErrorDelegateVtbl.h:113
SYS_DEFINE_STATIC_INLINE sys_error_code_t IAEDInit(IApplicationErrorDelegate *_this, void *pParams)
Definition IApplicationErrorDelegateVtbl.h:73
SYS_DEFINE_STATIC_INLINE uint8_t IAEDGetMaxFirstResponderPriority(const IApplicationErrorDelegate *_this)
Definition IApplicationErrorDelegateVtbl.h:108
SYS_DEFINE_STATIC_INLINE boolean_t IAEDIsLastErrorPending(IApplicationErrorDelegate *_this)
Definition IApplicationErrorDelegateVtbl.h:93
SYS_DEFINE_STATIC_INLINE sys_error_code_t IAEDAddFirstResponder(IApplicationErrorDelegate *_this, IErrFirstResponder *pFirstResponder, uint8_t nPriority)
Definition IApplicationErrorDelegateVtbl.h:98
Umbrella header for the basic system features.
Definition ApplicationContext.h:39
Definition IApplicationErrorDelegateVtbl.h:40
sys_error_code_t(* OnNewErrEvent)(IApplicationErrorDelegate *_this, SysEvent xEvent)
Definition IApplicationErrorDelegateVtbl.h:44
sys_error_code_t(* ProcessEvent)(IApplicationErrorDelegate *_this, ApplicationContext *pxContext, SysEvent xEvent)
Definition IApplicationErrorDelegateVtbl.h:43
void(* ResetCounter)(IApplicationErrorDelegate *_this)
Definition IApplicationErrorDelegateVtbl.h:49
sys_error_code_t(* RemoveFirstResponder)(IApplicationErrorDelegate *_this, IErrFirstResponder *pFirstResponder)
Definition IApplicationErrorDelegateVtbl.h:47
sys_error_code_t(* AddFirstResponder)(IApplicationErrorDelegate *_this, IErrFirstResponder *pFirstResponder, uint8_t nPriority)
Definition IApplicationErrorDelegateVtbl.h:46
uint8_t(* GetMaxFirstResponderPriority)(const IApplicationErrorDelegate *_this)
Definition IApplicationErrorDelegateVtbl.h:48
boolean_t(* IsLastErrorPending)(IApplicationErrorDelegate *_this)
Definition IApplicationErrorDelegateVtbl.h:45
sys_error_code_t(* OnStartApplication)(IApplicationErrorDelegate *_this, ApplicationContext *pxContext)
Definition IApplicationErrorDelegateVtbl.h:42
sys_error_code_t(* Init)(IApplicationErrorDelegate *_this, void *pParams)
Definition IApplicationErrorDelegateVtbl.h:41
Definition IApplicationErrorDelegateVtbl.h:57
const IApplicationErrorDelegate_vtbl * vptr
Definition IApplicationErrorDelegateVtbl.h:62
Definition IErrorFirstResponderVtbl.h:51
uint16_t sys_error_code_t
Definition syserror.h:41
#define SYS_DEFINE_STATIC_INLINE
Definition systp.h:95
Definition sysevent.h:41