eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
IErrorFirstResponderVtbl.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_SERVICES_IERRORFIRSTRESPONDERVTBL_H_
24#define INCLUDE_SERVICES_IERRORFIRSTRESPONDERVTBL_H_
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
31
32
37
43 void (*SetOwner)(IErrFirstResponder *_this, void *pxOwner);
44 void *(*GetOwner)(IErrFirstResponder *_this);
45 sys_error_code_t (*NewError)(IErrFirstResponder *_this, SysEvent xError, boolean_t bIsCalledFromISR);
46};
47
56};
57
58
59// Public API declaration
60//***********************
61
62
63// Inline functions definition
64// ***************************
65
68 _this->vptr->SetOwner(_this, pxOwner);
69}
70
73 return _this->vptr->GetOwner(_this);
74}
75
77sys_error_code_t IErrorFirstResponderNewError(IErrFirstResponder *_this, SysEvent xError, boolean_t bIsCalledFromISR) {
78 return _this->vptr->NewError(_this, xError, bIsCalledFromISR);
79}
80
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* INCLUDE_SERVICES_IERRORFIRSTRESPONDERVTBL_H_ */
Declare the Error first responder interface.
SYS_DEFINE_STATIC_INLINE void IErrFirstResponderSetOwner(IErrFirstResponder *_this, void *pxOwner)
Definition IErrorFirstResponderVtbl.h:67
SYS_DEFINE_STATIC_INLINE void * IErrFirstResponderGetOwner(IErrFirstResponder *_this)
Definition IErrorFirstResponderVtbl.h:72
SYS_DEFINE_STATIC_INLINE sys_error_code_t IErrorFirstResponderNewError(IErrFirstResponder *_this, SysEvent xError, boolean_t bIsCalledFromISR)
Definition IErrorFirstResponderVtbl.h:77
Definition IErrorFirstResponderVtbl.h:42
void(* SetOwner)(IErrFirstResponder *_this, void *pxOwner)
Definition IErrorFirstResponderVtbl.h:43
void *(* GetOwner)(IErrFirstResponder *_this)
Definition IErrorFirstResponderVtbl.h:44
sys_error_code_t(* NewError)(IErrFirstResponder *_this, SysEvent xError, boolean_t bIsCalledFromISR)
Definition IErrorFirstResponderVtbl.h:45
Definition IErrorFirstResponderVtbl.h:51
const IErrFirstResponder_vtbl * vptr
Definition IErrorFirstResponderVtbl.h:55
uint16_t sys_error_code_t
Definition syserror.h:41
#define SYS_DEFINE_STATIC_INLINE
Definition systp.h:95
Definition sysevent.h:41