eLooM for STM32 application
v3.3.0
|
<DESCRIPTIOM> More...
#include "services/eloom_sysbase.h"
Go to the source code of this file.
Data Structures | |
struct | _IAppPowerModeHelper_vtbl |
struct | _IAppPowerModeHelper |
Typedefs | |
typedef struct _IAppPowerModeHelper_vtbl | IAppPowerModeHelper_vtbl |
Functions | |
SYS_DEFINE_STATIC_INLINE sys_error_code_t | IapmhInit (IAppPowerModeHelper *_this) |
SYS_DEFINE_STATIC_INLINE EPowerMode | IapmhComputeNewPowerMode (IAppPowerModeHelper *_this, const SysEvent xEvent) |
SYS_DEFINE_STATIC_INLINE boolean_t | IapmhCheckPowerModeTransaction (IAppPowerModeHelper *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode) |
SYS_DEFINE_STATIC_INLINE sys_error_code_t | IapmhDidEnterPowerMode (IAppPowerModeHelper *_this, EPowerMode ePowerMode) |
SYS_DEFINE_STATIC_INLINE EPowerMode | IapmhGetActivePowerMode (IAppPowerModeHelper *_this) |
SYS_DEFINE_STATIC_INLINE SysPowerStatus | IapmhGetPowerStatus (IAppPowerModeHelper *_this) |
SYS_DEFINE_STATIC_INLINE boolean_t | IapmhIsLowPowerMode (IAppPowerModeHelper *_this, const EPowerMode ePowerMode) |
<DESCRIPTIOM>
Copyright (c) 2018 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 _IAppPowerModeHelper_vtbl IAppPowerModeHelper_vtbl |
Create type name for _IAppPowerModeHelper_vtbl.
|
inline |
Used mainly for debug purpose. It checks if a request power mode transaction is valid.
_this | [IN] specifies a pointer to the object. |
eActivePowerMode | [IN] species the actual power mode. |
eNewPowerMode | [IN] specifies a new power mode. |
TRUE
if the transaction is valid. If the transaction is not valid the program execution is stopped.
|
inline |
Compute the new power mode depending on the input event.
_this | [IN] specifies a pointer to the object. |
xEvent | [IN] an power mode input event. |
|
inline |
Used by the system to enter the new power mode. It is called after all application task are ready for the new power mode.
_this | [IN] specifies a pointer to the object. |
ePowerMode | [IN] specifies a new power mode. |
|
inline |
Get the active power mode.
_this | [IN] specifies a pointer to the object. |
|
inline |
Get a copy of the actual power status.
_this | [IN] specifies a pointer to the object. |
|
inline |
Initialize the interface IAppPowerModeHelper. It should be called after the object allocation and before using the object.
_this | [IN] specifies a pointer to the object. |
|
inline |
Check if a power mode is a low power mode that put the MCU in STOPx mode or higher power efficient mode.
_this | [IN] specifies a pointer to the object. |
ePowerMode | [IN] species a power mode. |
TRUE
if ePowerMode is a low power mode, ‘FALSE’ otherwise.