eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
AManagedTaskEx.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_SERVICES_AMANAGEDTASKEX_H_
24#define INCLUDE_SERVICES_AMANAGEDTASKEX_H_
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30
32
33
38
43typedef enum _EPMClass {
46 E_PM_CLASS_2 = 2
48
49
50// Public API declaration
51//***********************
52
60static inline sys_error_code_t AMTInitEx(AManagedTaskEx *_this);
61
72static inline sys_error_code_t AMTExForceExecuteStep(AManagedTaskEx *_this, EPowerMode eActivePowerMode);
73
87static inline sys_error_code_t AMTExOnEnterPowerMode(AManagedTaskEx *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode);
88
100static inline sys_error_code_t AMTExSetInactiveState(AManagedTaskEx *_this, boolean_t bBlockedSuspended);
101
112static inline boolean_t AMTExIsTaskInactive(AManagedTaskEx *_this);
113
126static inline sys_error_code_t AMTExSetPMClass(AManagedTaskEx *_this, EPMClass eNewPMClass);
127
133static inline EPMClass AMTExGetPMClass(AManagedTaskEx *_this);
134
140VOID AMTExRun(ULONG nParam);
141
142
143// Inline functions definition
144// ***************************
145
146
147#ifdef __cplusplus
148}
149#endif
150
151#endif /* INCLUDE_SERVICES_AMANAGEDTASKEX_H_ */
This file declare the Managed task Interface.
static sys_error_code_t AMTExSetInactiveState(AManagedTaskEx *_this, boolean_t bBlockedSuspended)
Definition AManagedTaskEx_vtbl.h:159
VOID AMTExRun(ULONG nParam)
static boolean_t AMTExIsTaskInactive(AManagedTaskEx *_this)
Definition AManagedTaskEx_vtbl.h:168
static EPMClass AMTExGetPMClass(AManagedTaskEx *_this)
Definition AManagedTaskEx_vtbl.h:184
static sys_error_code_t AMTExSetPMClass(AManagedTaskEx *_this, EPMClass eNewPMClass)
Definition AManagedTaskEx_vtbl.h:175
enum _EPMClass EPMClass
static sys_error_code_t AMTExForceExecuteStep(AManagedTaskEx *_this, EPowerMode eActivePowerMode)
Definition AManagedTaskEx_vtbl.h:108
static sys_error_code_t AMTInitEx(AManagedTaskEx *_this)
Definition AManagedTaskEx_vtbl.h:136
_EPMClass
Definition AManagedTaskEx.h:43
@ E_PM_CLASS_0
Definition AManagedTaskEx.h:44
@ E_PM_CLASS_2
Definition AManagedTaskEx.h:46
@ E_PM_CLASS_1
Definition AManagedTaskEx.h:45
static sys_error_code_t AMTExOnEnterPowerMode(AManagedTaskEx *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode)
Definition AManagedTaskEx_vtbl.h:121
Definition AManagedTaskEx_vtbl.h:64
uint16_t sys_error_code_t
Definition syserror.h:41