eLooM for STM32 application
v3.3.0
|
<DESCRIPTIOM> More...
Go to the source code of this file.
Typedefs | |
typedef struct _IAppPowerModeHelper | IAppPowerModeHelper |
Functions | |
static sys_error_code_t | IapmhInit (IAppPowerModeHelper *_this) |
static EPowerMode | IapmhComputeNewPowerMode (IAppPowerModeHelper *_this, const SysEvent xEvent) |
static boolean_t | IapmhCheckPowerModeTransaction (IAppPowerModeHelper *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode) |
static sys_error_code_t | IapmhDidEnterPowerMode (IAppPowerModeHelper *_this, EPowerMode ePowerMode) |
static EPowerMode | IapmhGetActivePowerMode (IAppPowerModeHelper *_this) |
static SysPowerStatus | IapmhGetPowerStatus (IAppPowerModeHelper *_this) |
static 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 IAppPowerModeHelper |
Create type name for _IAppPowerModeHelper.
|
inlinestatic |
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.
|
inlinestatic |
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. |
|
inlinestatic |
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. |
|
inlinestatic |
Get the active power mode.
_this | [IN] specifies a pointer to the object. |
|
inlinestatic |
Get a copy of the actual power status.
_this | [IN] specifies a pointer to the object. |
|
inlinestatic |
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. |
|
inlinestatic |
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.