STM32L443xx HAL User Manual
|
Header file of PWR HAL module. More...
Go to the source code of this file.
Data Structures | |
struct | PWR_PVDTypeDef |
PWR PVD configuration structure definition. More... | |
Defines | |
#define | PWR_PVDLEVEL_0 PWR_CR2_PLS_LEV0 |
#define | PWR_PVDLEVEL_1 PWR_CR2_PLS_LEV1 |
#define | PWR_PVDLEVEL_2 PWR_CR2_PLS_LEV2 |
#define | PWR_PVDLEVEL_3 PWR_CR2_PLS_LEV3 |
#define | PWR_PVDLEVEL_4 PWR_CR2_PLS_LEV4 |
#define | PWR_PVDLEVEL_5 PWR_CR2_PLS_LEV5 |
#define | PWR_PVDLEVEL_6 PWR_CR2_PLS_LEV6 |
#define | PWR_PVDLEVEL_7 PWR_CR2_PLS_LEV7 |
#define | PWR_PVD_MODE_NORMAL ((uint32_t)0x00000000) |
#define | PWR_PVD_MODE_IT_RISING ((uint32_t)0x00010001) |
#define | PWR_PVD_MODE_IT_FALLING ((uint32_t)0x00010002) |
#define | PWR_PVD_MODE_IT_RISING_FALLING ((uint32_t)0x00010003) |
#define | PWR_PVD_MODE_EVENT_RISING ((uint32_t)0x00020001) |
#define | PWR_PVD_MODE_EVENT_FALLING ((uint32_t)0x00020002) |
#define | PWR_PVD_MODE_EVENT_RISING_FALLING ((uint32_t)0x00020003) |
#define | PWR_MAINREGULATOR_ON ((uint32_t)0x00000000) |
#define | PWR_LOWPOWERREGULATOR_ON PWR_CR1_LPR |
#define | PWR_SLEEPENTRY_WFI ((uint8_t)0x01) |
#define | PWR_SLEEPENTRY_WFE ((uint8_t)0x02) |
#define | PWR_STOPENTRY_WFI ((uint8_t)0x01) |
#define | PWR_STOPENTRY_WFE ((uint8_t)0x02) |
#define | PWR_EXTI_LINE_PVD ((uint32_t)0x00010000) |
#define | PWR_EVENT_LINE_PVD ((uint32_t)0x00010000) |
#define | __HAL_PWR_GET_FLAG(__FLAG__) |
Check whether or not a specific PWR flag is set. | |
#define | __HAL_PWR_CLEAR_FLAG(__FLAG__) |
Clear a specific PWR flag. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) |
Enable the PVD Extended Interrupt Line. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) |
Disable the PVD Extended Interrupt Line. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR1, PWR_EVENT_LINE_PVD) |
Enable the PVD Event Line. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR1, PWR_EVENT_LINE_PVD) |
Disable the PVD Event Line. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) |
Enable the PVD Extended Interrupt Rising Trigger. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) |
Disable the PVD Extended Interrupt Rising Trigger. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) |
Enable the PVD Extended Interrupt Falling Trigger. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) |
Disable the PVD Extended Interrupt Falling Trigger. | |
#define | __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable the PVD Extended Interrupt Rising & Falling Trigger. | |
#define | __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable the PVD Extended Interrupt Rising & Falling Trigger. | |
#define | __HAL_PWR_PVD_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, PWR_EXTI_LINE_PVD) |
Generate a Software interrupt on selected EXTI line. | |
#define | __HAL_PWR_PVD_EXTI_GET_FLAG() (EXTI->PR1 & PWR_EXTI_LINE_PVD) |
Check whether or not the PVD EXTI interrupt flag is set. | |
#define | __HAL_PWR_PVD_EXTI_CLEAR_FLAG() WRITE_REG(EXTI->PR1, PWR_EXTI_LINE_PVD) |
Clear the PVD EXTI interrupt flag. | |
#define | IS_PWR_PVD_LEVEL(LEVEL) |
#define | IS_PWR_PVD_MODE(MODE) |
#define | IS_PWR_REGULATOR(REGULATOR) |
#define | IS_PWR_SLEEP_ENTRY(ENTRY) (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE)) |
#define | IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPENTRY_WFI) || ((ENTRY) == PWR_STOPENTRY_WFE) ) |
Functions | |
void | HAL_PWR_DeInit (void) |
Deinitialize the HAL PWR peripheral registers to their default reset values. | |
void | HAL_PWR_EnableBkUpAccess (void) |
Enable access to the backup domain (RTC registers, RTC backup data registers). | |
void | HAL_PWR_DisableBkUpAccess (void) |
Disable access to the backup domain (RTC registers, RTC backup data registers). | |
HAL_StatusTypeDef | HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD) |
Configure the voltage threshold detected by the Power Voltage Detector (PVD). | |
void | HAL_PWR_EnablePVD (void) |
Enable the Power Voltage Detector (PVD). | |
void | HAL_PWR_DisablePVD (void) |
Disable the Power Voltage Detector (PVD). | |
void | HAL_PWR_EnableWakeUpPin (uint32_t WakeUpPinPolarity) |
Enable the WakeUp PINx functionality. | |
void | HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx) |
Disable the WakeUp PINx functionality. | |
void | HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry) |
Enter Sleep or Low-power Sleep mode. | |
void | HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry) |
Enter Stop mode. | |
void | HAL_PWR_EnterSTANDBYMode (void) |
Enter Standby mode. | |
void | HAL_PWR_EnableSleepOnExit (void) |
Indicate Sleep-On-Exit when returning from Handler mode to Thread mode. | |
void | HAL_PWR_DisableSleepOnExit (void) |
Disable Sleep-On-Exit feature when returning from Handler mode to Thread mode. | |
void | HAL_PWR_EnableSEVOnPend (void) |
Enable CORTEX M4 SEVONPEND bit. | |
void | HAL_PWR_DisableSEVOnPend (void) |
Disable CORTEX M4 SEVONPEND bit. | |
__weak void | HAL_PWR_PVDCallback (void) |
PWR PVD interrupt callback. |
Header file of PWR HAL module.
Copyright (c) 2017 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 stm32l4xx_hal_pwr.h.