L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
stm32_lpm_if.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file stm32_lpm_if.h
5 * @author MCD Application Team
6 * @brief Header for Low Power Manager interface configuration
7 ******************************************************************************
8 * @attention
9 *
10 * Copyright (c) 2026 STMicroelectronics.
11 * All rights reserved.
12 *
13 * This software is licensed under terms that can be found in the LICENSE file
14 * in the root directory of this software component.
15 * If no LICENSE file comes with this software, it is provided AS-IS.
16 *
17 ******************************************************************************
18 */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __STM32_LPM_IF_H__
23#define __STM32_LPM_IF_H__
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "stm32_lpm.h"
31
32/* USER CODE BEGIN Includes */
33
34/* USER CODE END Includes */
35
36/* Exported types ------------------------------------------------------------*/
37/* USER CODE BEGIN ET */
38
39/* USER CODE END ET */
40
41/* Exported constants --------------------------------------------------------*/
42/* USER CODE BEGIN EC */
43
44/* USER CODE END EC */
45
46/* External variables --------------------------------------------------------*/
47/* USER CODE BEGIN EV */
48
49/**
50 * @brief Accumulates the total time spent in STOP or SLEEP mode (in ms or ticks).
51 * Incremented each time PWR_ExitStopMode() or PWR_ExitSleepMode() is called
52 * so that the application can track duty-cycle or battery consumption.
53 */
54/* USER CODE END EV */
55
56/* Exported macro ------------------------------------------------------------*/
57/* USER CODE BEGIN EM */
58
59/* USER CODE END EM */
60
61/* Exported functions prototypes ---------------------------------------------*/
62/**
63 * @brief Enters Low Power Off Mode
64 */
65void PWR_EnterOffMode(void);
66
67/**
68 * @brief Exits Low Power Off Mode
69 */
70void PWR_ExitOffMode(void);
71
72/**
73 * @brief Enters Low Power Stop Mode
74 * @note ARM exists the function when waking up
75 */
76void PWR_EnterStopMode(void);
77
78/**
79 * @brief Exits Low Power Stop Mode
80 * @note Enable the pll at 32MHz
81 */
82void PWR_ExitStopMode(void);
83
84/**
85 * @brief Enters Low Power Sleep Mode
86 * @note ARM exits the function when waking up
87 */
88void PWR_EnterSleepMode(void);
89
90/**
91 * @brief Exits Low Power Sleep Mode
92 * @note ARM exits the function when waking up
93 */
94void PWR_ExitSleepMode(void);
95
96/* USER CODE BEGIN EFP */
97
98/* USER CODE END EFP */
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif /*__STM32_LPM_IF_H__ */
void PWR_ExitStopMode(void)
Exits Low Power Stop Mode.
void PWR_EnterOffMode(void)
Accumulates the total time spent in STOP or SLEEP mode (in ms or ticks). Incremented each time PWR_Ex...
void PWR_EnterSleepMode(void)
Enters Low Power Sleep Mode.
void PWR_EnterStopMode(void)
Enters Low Power Stop Mode.
void PWR_ExitSleepMode(void)
Exits Low Power Sleep Mode.
void PWR_ExitOffMode(void)
Exits Low Power Off Mode.