RTEMS 6.1-rc6
|
Header file of PWR HAL Extension module. More...
#include "stm32h7xx_hal_def.h"
Go to the source code of this file.
Data Structures | |
struct | PWREx_AVDTypeDef |
PWREx AVD configuration structure definition. More... | |
struct | PWREx_WakeupPinTypeDef |
PWREx Wakeup pin configuration structure definition. More... | |
Macros | |
#define | PWR_WAKEUP_PIN6 PWR_WKUPEPR_WKUPEN6 |
#define | PWR_WAKEUP_PIN4 PWR_WKUPEPR_WKUPEN4 |
#define | PWR_WAKEUP_PIN2 PWR_WKUPEPR_WKUPEN2 |
#define | PWR_WAKEUP_PIN1 PWR_WKUPEPR_WKUPEN1 |
#define | PWR_WAKEUP_PIN6_HIGH PWR_WKUPEPR_WKUPEN6 |
#define | PWR_WAKEUP_PIN4_HIGH PWR_WKUPEPR_WKUPEN4 |
#define | PWR_WAKEUP_PIN2_HIGH PWR_WKUPEPR_WKUPEN2 |
#define | PWR_WAKEUP_PIN1_HIGH PWR_WKUPEPR_WKUPEN1 |
#define | PWR_WAKEUP_PIN6_LOW (PWR_WKUPEPR_WKUPP6 | PWR_WKUPEPR_WKUPEN6) |
#define | PWR_WAKEUP_PIN4_LOW (PWR_WKUPEPR_WKUPP4 | PWR_WKUPEPR_WKUPEN4) |
#define | PWR_WAKEUP_PIN2_LOW (PWR_WKUPEPR_WKUPP2 | PWR_WKUPEPR_WKUPEN2) |
#define | PWR_WAKEUP_PIN1_LOW (PWR_WKUPEPR_WKUPP1 | PWR_WKUPEPR_WKUPEN1) |
#define | PWR_PIN_POLARITY_HIGH (0x00000000U) |
#define | PWR_PIN_POLARITY_LOW (0x00000001U) |
#define | PWR_PIN_NO_PULL (0x00000000U) |
#define | PWR_PIN_PULL_UP (0x00000001U) |
#define | PWR_PIN_PULL_DOWN (0x00000002U) |
#define | PWR_WAKEUP_FLAG1 PWR_WKUPFR_WKUPF1 |
#define | PWR_WAKEUP_FLAG2 PWR_WKUPFR_WKUPF2 |
#define | PWR_WAKEUP_FLAG4 PWR_WKUPFR_WKUPF4 |
#define | PWR_WAKEUP_FLAG6 PWR_WKUPFR_WKUPF6 |
#define | PWR_WAKEUP_FLAG_ALL |
#define | PWR_D1_DOMAIN (0x00000000U) |
#define | PWR_D3_DOMAIN (0x00000002U) |
#define | PWR_CPU_FLAGS (0x00000000U) |
#define | PWR_D3_DOMAIN_STOP (0x00000000U) |
#define | PWR_D3_DOMAIN_RUN (0x00000800U) |
#define | PWR_LDO_SUPPLY PWR_CR3_LDOEN |
#define | PWR_EXTERNAL_SOURCE_SUPPLY PWR_CR3_BYPASS |
#define | PWR_SUPPLY_CONFIG_MASK (PWR_CR3_SCUEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS) |
#define | PWR_AVDLEVEL_0 PWR_CR1_ALS_LEV0 |
#define | PWR_AVDLEVEL_1 PWR_CR1_ALS_LEV1 |
#define | PWR_AVDLEVEL_2 PWR_CR1_ALS_LEV2 |
#define | PWR_AVDLEVEL_3 PWR_CR1_ALS_LEV3 |
#define | PWR_AVD_MODE_NORMAL (0x00000000U) |
#define | PWR_AVD_MODE_IT_RISING (0x00010001U) |
#define | PWR_AVD_MODE_IT_FALLING (0x00010002U) |
#define | PWR_AVD_MODE_IT_RISING_FALLING (0x00010003U) |
#define | PWR_AVD_MODE_EVENT_RISING (0x00020001U) |
#define | PWR_AVD_MODE_EVENT_FALLING (0x00020002U) |
#define | PWR_AVD_MODE_EVENT_RISING_FALLING (0x00020003U) |
#define | PWR_REGULATOR_SVOS_SCALE5 (PWR_CR1_SVOS_0) |
#define | PWR_REGULATOR_SVOS_SCALE4 (PWR_CR1_SVOS_1) |
#define | PWR_REGULATOR_SVOS_SCALE3 (PWR_CR1_SVOS_0 | PWR_CR1_SVOS_1) |
#define | PWR_BATTERY_CHARGING_RESISTOR_5 (0x00000000U) |
#define | PWR_BATTERY_CHARGING_RESISTOR_1_5 PWR_CR3_VBRS |
#define | PWR_VBAT_BETWEEN_HIGH_LOW_THRESHOLD (0x00000000U) |
#define | PWR_VBAT_BELOW_LOW_THRESHOLD PWR_CR2_VBATL |
#define | PWR_VBAT_ABOVE_HIGH_THRESHOLD PWR_CR2_VBATH |
#define | PWR_TEMP_BETWEEN_HIGH_LOW_THRESHOLD (0x00000000U) |
#define | PWR_TEMP_BELOW_LOW_THRESHOLD PWR_CR2_TEMPL |
#define | PWR_TEMP_ABOVE_HIGH_THRESHOLD PWR_CR2_TEMPH |
#define | PWR_EXTI_LINE_AVD EXTI_IMR1_IM16 |
#define | __HAL_PWR_AVD_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR1, PWR_EXTI_LINE_AVD) |
Enable the AVD EXTI Line 16. | |
#define | __HAL_PWR_AVD_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR1, PWR_EXTI_LINE_AVD) |
Disable the AVD EXTI Line 16. | |
#define | __HAL_PWR_AVD_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR1, PWR_EXTI_LINE_AVD) |
Enable event on AVD EXTI Line 16. | |
#define | __HAL_PWR_AVD_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR1, PWR_EXTI_LINE_AVD) |
Disable event on AVD EXTI Line 16. | |
#define | __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, PWR_EXTI_LINE_AVD) |
Enable the AVD Extended Interrupt Rising Trigger. | |
#define | __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, PWR_EXTI_LINE_AVD) |
Disable the AVD Extended Interrupt Rising Trigger. | |
#define | __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, PWR_EXTI_LINE_AVD) |
Enable the AVD Extended Interrupt Falling Trigger. | |
#define | __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, PWR_EXTI_LINE_AVD) |
Disable the AVD Extended Interrupt Falling Trigger. | |
#define | __HAL_PWR_AVD_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable the AVD Extended Interrupt Rising and Falling Trigger. | |
#define | __HAL_PWR_AVD_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable the AVD Extended Interrupt Rising & Falling Trigger. | |
#define | __HAL_PWR_AVD_EXTI_GET_FLAG() ((READ_BIT(EXTI->PR1, PWR_EXTI_LINE_AVD) == PWR_EXTI_LINE_AVD) ? 1UL : 0UL) |
Check whether the specified AVD EXTI interrupt flag is set or not. | |
#define | __HAL_PWR_AVD_EXTI_CLEAR_FLAG() SET_BIT(EXTI->PR1, PWR_EXTI_LINE_AVD) |
Clear the AVD EXTI flag. | |
#define | __HAL_PWR_AVD_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, PWR_EXTI_LINE_AVD) |
Generates a Software interrupt on AVD EXTI line. | |
#define | IS_PWR_SUPPLY(PWR_SOURCE) |
#define | IS_PWR_STOP_MODE_REGULATOR_VOLTAGE(VOLTAGE) |
#define | IS_PWR_DOMAIN(DOMAIN) |
#define | IS_D3_STATE(STATE) |
#define | IS_PWR_WAKEUP_PIN(PIN) |
#define | IS_PWR_WAKEUP_PIN_POLARITY(POLARITY) |
#define | IS_PWR_WAKEUP_PIN_PULL(PULL) |
#define | IS_PWR_WAKEUP_FLAG(FLAG) |
#define | IS_PWR_AVD_LEVEL(LEVEL) |
#define | IS_PWR_AVD_MODE(MODE) |
#define | IS_PWR_BATTERY_RESISTOR_SELECT(RESISTOR) |
#define | IS_PWR_D1_CPU(CPU) ((CPU) == CM7_CPUID) |
Functions | |
HAL_StatusTypeDef | HAL_PWREx_ConfigSupply (uint32_t SupplySource) |
uint32_t | HAL_PWREx_GetSupplyConfig (void) |
HAL_StatusTypeDef | HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling) |
uint32_t | HAL_PWREx_GetVoltageRange (void) |
HAL_StatusTypeDef | HAL_PWREx_ControlStopModeVoltageScaling (uint32_t VoltageScaling) |
uint32_t | HAL_PWREx_GetStopModeVoltageRange (void) |
void | HAL_PWREx_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry, uint32_t Domain) |
void | HAL_PWREx_EnterSTANDBYMode (uint32_t Domain) |
void | HAL_PWREx_ConfigD3Domain (uint32_t D3State) |
void | HAL_PWREx_ClearPendingEvent (void) |
void | HAL_PWREx_EnableFlashPowerDown (void) |
void | HAL_PWREx_DisableFlashPowerDown (void) |
void | HAL_PWREx_EnableWakeUpPin (PWREx_WakeupPinTypeDef *sPinParams) |
void | HAL_PWREx_DisableWakeUpPin (uint32_t WakeUpPin) |
uint32_t | HAL_PWREx_GetWakeupFlag (uint32_t WakeUpFlag) |
HAL_StatusTypeDef | HAL_PWREx_ClearWakeupFlag (uint32_t WakeUpFlag) |
void | HAL_PWREx_WAKEUP_PIN_IRQHandler (void) |
void | HAL_PWREx_WKUP1_Callback (void) |
void | HAL_PWREx_WKUP2_Callback (void) |
void | HAL_PWREx_WKUP4_Callback (void) |
void | HAL_PWREx_WKUP6_Callback (void) |
HAL_StatusTypeDef | HAL_PWREx_EnableBkUpReg (void) |
HAL_StatusTypeDef | HAL_PWREx_DisableBkUpReg (void) |
HAL_StatusTypeDef | HAL_PWREx_EnableUSBReg (void) |
HAL_StatusTypeDef | HAL_PWREx_DisableUSBReg (void) |
void | HAL_PWREx_EnableUSBVoltageDetector (void) |
void | HAL_PWREx_DisableUSBVoltageDetector (void) |
void | HAL_PWREx_EnableBatteryCharging (uint32_t ResistorValue) |
void | HAL_PWREx_DisableBatteryCharging (void) |
void | HAL_PWREx_EnableMonitoring (void) |
void | HAL_PWREx_DisableMonitoring (void) |
uint32_t | HAL_PWREx_GetTemperatureLevel (void) |
uint32_t | HAL_PWREx_GetVBATLevel (void) |
void | HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD) |
void | HAL_PWREx_EnableAVD (void) |
void | HAL_PWREx_DisableAVD (void) |
void | HAL_PWREx_PVD_AVD_IRQHandler (void) |
void | HAL_PWREx_AVDCallback (void) |
Header file of PWR HAL Extension 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.