L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
stm32_lpm_if.h File Reference

Header for Low Power Manager interface configuration. More...

#include "stm32_lpm.h"
Include dependency graph for stm32_lpm_if.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void PWR_EnterOffMode (void)
 Accumulates the total time spent in STOP or SLEEP mode (in ms or ticks). Incremented each time PWR_ExitStopMode() or PWR_ExitSleepMode() is called so that the application can track duty-cycle or battery consumption.
void PWR_ExitOffMode (void)
 Exits Low Power Off Mode.
void PWR_EnterStopMode (void)
 Enters Low Power Stop Mode.
void PWR_ExitStopMode (void)
 Exits Low Power Stop Mode.
void PWR_EnterSleepMode (void)
 Enters Low Power Sleep Mode.
void PWR_ExitSleepMode (void)
 Exits Low Power Sleep Mode.

Detailed Description

Header for Low Power Manager interface configuration.

Author
MCD Application Team
Attention

Copyright (c) 2026 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.

Definition in file stm32_lpm_if.h.

Function Documentation

◆ PWR_EnterOffMode()

void PWR_EnterOffMode ( void )

Accumulates the total time spent in STOP or SLEEP mode (in ms or ticks). Incremented each time PWR_ExitStopMode() or PWR_ExitSleepMode() is called so that the application can track duty-cycle or battery consumption.

Enters Low Power Off Mode

Definition at line 81 of file stm32_lpm_if.c.

References hadc, hrtc, MX_SPI1_DeInit(), and NFC_INT_Pin.

Here is the call graph for this function:

◆ PWR_EnterSleepMode()

void PWR_EnterSleepMode ( void )

Enters Low Power Sleep Mode.

Note
ARM exits the function when waking up

Definition at line 292 of file stm32_lpm_if.c.

References writeLog().

Here is the call graph for this function:

◆ PWR_EnterStopMode()

void PWR_EnterStopMode ( void )

Enters Low Power Stop Mode.

Note
ARM exists the function when waking up

Definition at line 237 of file stm32_lpm_if.c.

References MX_SPI1_DeInit(), NFC_LPD_Enb_GPIO_Port, NFC_LPD_Enb_Pin, sensorsBase_StartTimerToOff(), and writeLog().

Here is the call graph for this function:

◆ PWR_ExitOffMode()

void PWR_ExitOffMode ( void )

Exits Low Power Off Mode.

Definition at line 229 of file stm32_lpm_if.c.

References systemRestart().

Here is the call graph for this function:

◆ PWR_ExitSleepMode()

void PWR_ExitSleepMode ( void )

Exits Low Power Sleep Mode.

Note
ARM exits the function when waking up

Definition at line 309 of file stm32_lpm_if.c.

References writeLog().

Here is the call graph for this function:

◆ PWR_ExitStopMode()

void PWR_ExitStopMode ( void )

Exits Low Power Stop Mode.

Note
Enable the pll at 32MHz

Definition at line 267 of file stm32_lpm_if.c.

References MX_SPI1_Init(), NFC_LPD_Enb_GPIO_Port, NFC_LPD_Enb_Pin, sensorsBase_StopTimerToOff(), SystemClock_Config(), uart_Start(), vcom_Resume(), and writeLog().

Here is the call graph for this function: