eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
IAppPowerModeHelper_vtbl.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_SERVICES_IAPPPOWERMODEHELPER_VTBL_H_
24#define INCLUDE_SERVICES_IAPPPOWERMODEHELPER_VTBL_H_
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30
32
33
38
44 EPowerMode (*ComputeNewPowerMode)(IAppPowerModeHelper *_this, const SysEvent xEvent);
45 boolean_t (*CheckPowerModeTransaction)(IAppPowerModeHelper *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode);
46 sys_error_code_t (*DidEnterPowerMode)(IAppPowerModeHelper *_this, EPowerMode ePowerMode);
47 EPowerMode (*GetActivePowerMode)(IAppPowerModeHelper *_this);
48 SysPowerStatus (*GetPowerStatus)(IAppPowerModeHelper *_this);
49 boolean_t (*IsLowPowerMode)(IAppPowerModeHelper *_this, const EPowerMode ePowerMode);
50};
51
61};
62
63
64// Inline functions definition
65// ***************************
66
69 return _this->vptr->Init(_this);
70}
71
73EPowerMode IapmhComputeNewPowerMode(IAppPowerModeHelper *_this, const SysEvent xEvent) {
74 return _this->vptr->ComputeNewPowerMode(_this, xEvent);
75}
76
78boolean_t IapmhCheckPowerModeTransaction(IAppPowerModeHelper *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode) {
79 return _this->vptr->CheckPowerModeTransaction(_this, eActivePowerMode, eNewPowerMode);
80}
81
84 return _this->vptr->DidEnterPowerMode(_this, ePowerMode);
85}
86
89 return _this->vptr->GetActivePowerMode(_this);
90}
91
94 return _this->vptr->GetPowerStatus(_this);
95}
96
98boolean_t IapmhIsLowPowerMode(IAppPowerModeHelper *_this, const EPowerMode ePowerMode) {
99 return _this->vptr->IsLowPowerMode(_this, ePowerMode);
100}
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* INCLUDE_SERVICES_IAPPPOWERMODEHELPER_VTBL_H_ */
SYS_DEFINE_STATIC_INLINE sys_error_code_t IapmhInit(IAppPowerModeHelper *_this)
Definition IAppPowerModeHelper_vtbl.h:68
SYS_DEFINE_STATIC_INLINE EPowerMode IapmhComputeNewPowerMode(IAppPowerModeHelper *_this, const SysEvent xEvent)
Definition IAppPowerModeHelper_vtbl.h:73
SYS_DEFINE_STATIC_INLINE SysPowerStatus IapmhGetPowerStatus(IAppPowerModeHelper *_this)
Definition IAppPowerModeHelper_vtbl.h:93
SYS_DEFINE_STATIC_INLINE sys_error_code_t IapmhDidEnterPowerMode(IAppPowerModeHelper *_this, EPowerMode ePowerMode)
Definition IAppPowerModeHelper_vtbl.h:83
SYS_DEFINE_STATIC_INLINE boolean_t IapmhCheckPowerModeTransaction(IAppPowerModeHelper *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode)
Definition IAppPowerModeHelper_vtbl.h:78
SYS_DEFINE_STATIC_INLINE EPowerMode IapmhGetActivePowerMode(IAppPowerModeHelper *_this)
Definition IAppPowerModeHelper_vtbl.h:88
SYS_DEFINE_STATIC_INLINE boolean_t IapmhIsLowPowerMode(IAppPowerModeHelper *_this, const EPowerMode ePowerMode)
Definition IAppPowerModeHelper_vtbl.h:98
Umbrella header for the basic system features.
Definition IAppPowerModeHelper_vtbl.h:42
Definition IAppPowerModeHelper_vtbl.h:56
const IAppPowerModeHelper_vtbl * vptr
Definition IAppPowerModeHelper_vtbl.h:60
uint16_t sys_error_code_t
Definition syserror.h:41
#define SYS_DEFINE_STATIC_INLINE
Definition systp.h:95
Definition sysevent.h:41