|
STM32L4xx_HAL_Driver
1.14.0
|
Extended Peripheral Control functions. More...
Functions | |
| uint32_t | HAL_PWREx_GetVoltageRange (void) |
| Return Voltage Scaling Range. More... | |
| HAL_StatusTypeDef | HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling) |
| Configure the main internal regulator output voltage. More... | |
| void | HAL_PWREx_EnableBatteryCharging (uint32_t ResistorSelection) |
| Enable battery charging. When VDD is present, charge the external battery on VBAT thru an internal resistor. More... | |
| void | HAL_PWREx_DisableBatteryCharging (void) |
| Disable battery charging. More... | |
| void | HAL_PWREx_EnableVddUSB (void) |
| Enable VDDUSB supply. More... | |
| void | HAL_PWREx_DisableVddUSB (void) |
| Disable VDDUSB supply. More... | |
| void | HAL_PWREx_EnableVddIO2 (void) |
| Enable VDDIO2 supply. More... | |
| void | HAL_PWREx_DisableVddIO2 (void) |
| Disable VDDIO2 supply. More... | |
| void | HAL_PWREx_EnableInternalWakeUpLine (void) |
| Enable Internal Wake-up Line. More... | |
| void | HAL_PWREx_DisableInternalWakeUpLine (void) |
| Disable Internal Wake-up Line. More... | |
| HAL_StatusTypeDef | HAL_PWREx_EnableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber) |
| Enable GPIO pull-up state in Standby and Shutdown modes. More... | |
| HAL_StatusTypeDef | HAL_PWREx_DisableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber) |
| Disable GPIO pull-up state in Standby mode and Shutdown modes. More... | |
| HAL_StatusTypeDef | HAL_PWREx_EnableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber) |
| Enable GPIO pull-down state in Standby and Shutdown modes. More... | |
| HAL_StatusTypeDef | HAL_PWREx_DisableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber) |
| Disable GPIO pull-down state in Standby and Shutdown modes. More... | |
| void | HAL_PWREx_EnablePullUpPullDownConfig (void) |
| Enable pull-up and pull-down configuration. More... | |
| void | HAL_PWREx_DisablePullUpPullDownConfig (void) |
| Disable pull-up and pull-down configuration. More... | |
| void | HAL_PWREx_EnableSRAM2ContentRetention (void) |
| Enable SRAM2 content retention in Standby mode. More... | |
| void | HAL_PWREx_DisableSRAM2ContentRetention (void) |
| Disable SRAM2 content retention in Standby mode. More... | |
| void | HAL_PWREx_EnableSRAM3ContentRetention (void) |
| Enable SRAM3 content retention in Stop 2 mode. More... | |
| void | HAL_PWREx_DisableSRAM3ContentRetention (void) |
| Disable SRAM3 content retention in Stop 2 mode. More... | |
| void | HAL_PWREx_EnableDSIPinsPDActivation (void) |
| Enable pull-down activation on DSI pins. More... | |
| void | HAL_PWREx_DisableDSIPinsPDActivation (void) |
| Disable pull-down activation on DSI pins. More... | |
| void | HAL_PWREx_EnablePVM1 (void) |
| Enable the Power Voltage Monitoring 1: VDDUSB versus 1.2V. More... | |
| void | HAL_PWREx_DisablePVM1 (void) |
| Disable the Power Voltage Monitoring 1: VDDUSB versus 1.2V. More... | |
| void | HAL_PWREx_EnablePVM2 (void) |
| Enable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V. More... | |
| void | HAL_PWREx_DisablePVM2 (void) |
| Disable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V. More... | |
| void | HAL_PWREx_EnablePVM3 (void) |
| Enable the Power Voltage Monitoring 3: VDDA versus 1.62V. More... | |
| void | HAL_PWREx_DisablePVM3 (void) |
| Disable the Power Voltage Monitoring 3: VDDA versus 1.62V. More... | |
| void | HAL_PWREx_EnablePVM4 (void) |
| Enable the Power Voltage Monitoring 4: VDDA versus 2.2V. More... | |
| void | HAL_PWREx_DisablePVM4 (void) |
| Disable the Power Voltage Monitoring 4: VDDA versus 2.2V. More... | |
| HAL_StatusTypeDef | HAL_PWREx_ConfigPVM (PWR_PVMTypeDef *sConfigPVM) |
| Configure the Peripheral Voltage Monitoring (PVM). More... | |
| void | HAL_PWREx_EnableBORPVD_ULP (void) |
| Enable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes. More... | |
| void | HAL_PWREx_DisableBORPVD_ULP (void) |
| Disable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes. More... | |
| void | HAL_PWREx_EnableExtSMPS_0V95 (void) |
| Enable the CFLDO working @ 0.95V. More... | |
| void | HAL_PWREx_DisableExtSMPS_0V95 (void) |
| Disable the CFLDO working @ 0.95V. More... | |
| void | HAL_PWREx_EnableLowPowerRunMode (void) |
| Enter Low-power Run mode. More... | |
| HAL_StatusTypeDef | HAL_PWREx_DisableLowPowerRunMode (void) |
| Exit Low-power Run mode. More... | |
| void | HAL_PWREx_EnterSTOP0Mode (uint8_t STOPEntry) |
| Enter Stop 0 mode. More... | |
| void | HAL_PWREx_EnterSTOP1Mode (uint8_t STOPEntry) |
| Enter Stop 1 mode. More... | |
| void | HAL_PWREx_EnterSTOP2Mode (uint8_t STOPEntry) |
| Enter Stop 2 mode. More... | |
| void | HAL_PWREx_EnterSHUTDOWNMode (void) |
| Enter Shutdown mode. More... | |
| void | HAL_PWREx_PVD_PVM_IRQHandler (void) |
| This function handles the PWR PVD/PVMx interrupt request. More... | |
| void | HAL_PWREx_PVM1Callback (void) |
| PWR PVM1 interrupt callback. More... | |
| void | HAL_PWREx_PVM2Callback (void) |
| PWR PVM2 interrupt callback. More... | |
| void | HAL_PWREx_PVM3Callback (void) |
| PWR PVM3 interrupt callback. More... | |
| void | HAL_PWREx_PVM4Callback (void) |
| PWR PVM4 interrupt callback. More... | |
Extended Peripheral Control functions.
===============================================================================
##### Extended Peripheral Initialization and de-initialization functions #####
===============================================================================
[..] | HAL_StatusTypeDef HAL_PWREx_ConfigPVM | ( | PWR_PVMTypeDef * | sConfigPVM | ) |
Configure the Peripheral Voltage Monitoring (PVM).
| sConfigPVM | pointer to a PWR_PVMTypeDef structure that contains the PVM configuration information. |
| HAL | status |
Definition at line 938 of file stm32l4xx_hal_pwr_ex.c.
| HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling | ( | uint32_t | VoltageScaling | ) |
Configure the main internal regulator output voltage.
| VoltageScaling | specifies the regulator output voltage to achieve a tradeoff between performance and power consumption. This parameter can be one of the following values:
|
| HAL | Status |
Definition at line 164 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisableBatteryCharging | ( | void | ) |
| void HAL_PWREx_DisableBORPVD_ULP | ( | void | ) |
Disable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes.
| None |
Definition at line 765 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisableDSIPinsPDActivation | ( | void | ) |
Disable pull-down activation on DSI pins.
| None |
Definition at line 838 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisableExtSMPS_0V95 | ( | void | ) |
Disable the CFLDO working @ 0.95V.
| None |
Definition at line 791 of file stm32l4xx_hal_pwr_ex.c.
| HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullDown | ( | uint32_t | GPIO, |
| uint32_t | GPIONumber | ||
| ) |
Disable GPIO pull-down state in Standby and Shutdown modes.
| GPIO | Specifies the IO port. This parameter can be PWR_GPIO_A..PWR_GPIO_H (or PWR_GPIO_I depending on the devices) to select the GPIO peripheral. |
| GPIONumber | Specify the I/O pins numbers. This parameter can be one of the following values: PWR_GPIO_BIT_0, ..., PWR_GPIO_BIT_15 (except for the port where less I/O pins are available) or the logical OR of several of them to reset several bits for a given port in a single API call. |
| HAL | Status |
Definition at line 635 of file stm32l4xx_hal_pwr_ex.c.
| HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullUp | ( | uint32_t | GPIO, |
| uint32_t | GPIONumber | ||
| ) |
Disable GPIO pull-up state in Standby mode and Shutdown modes.
| GPIO | Specifies the IO port. This parameter can be PWR_GPIO_A, ..., PWR_GPIO_H (or PWR_GPIO_I depending on the devices) to select the GPIO peripheral. |
| GPIONumber | Specify the I/O pins numbers. This parameter can be one of the following values: PWR_GPIO_BIT_0, ..., PWR_GPIO_BIT_15 (except for the port where less I/O pins are available) or the logical OR of several of them to reset several bits for a given port in a single API call. |
| HAL | Status |
Definition at line 475 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisableInternalWakeUpLine | ( | void | ) |
Disable Internal Wake-up Line.
| None |
Definition at line 364 of file stm32l4xx_hal_pwr_ex.c.
| HAL_StatusTypeDef HAL_PWREx_DisableLowPowerRunMode | ( | void | ) |
Exit Low-power Run mode.
| HAL | Status |
Definition at line 1115 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisablePullUpPullDownConfig | ( | void | ) |
Disable pull-up and pull-down configuration.
| None |
Definition at line 717 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisablePVM1 | ( | void | ) |
Disable the Power Voltage Monitoring 1: VDDUSB versus 1.2V.
| None |
Definition at line 858 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisablePVM2 | ( | void | ) |
Disable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V.
| None |
Definition at line 879 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisablePVM3 | ( | void | ) |
Disable the Power Voltage Monitoring 3: VDDA versus 1.62V.
| None |
Definition at line 899 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisablePVM4 | ( | void | ) |
Disable the Power Voltage Monitoring 4: VDDA versus 2.2V.
| None |
Definition at line 918 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisableSRAM2ContentRetention | ( | void | ) |
Disable SRAM2 content retention in Standby mode.
| None |
Definition at line 742 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisableSRAM3ContentRetention | ( | void | ) |
Disable SRAM3 content retention in Stop 2 mode.
| None |
Definition at line 817 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_DisableVddIO2 | ( | void | ) |
| void HAL_PWREx_DisableVddUSB | ( | void | ) |
| void HAL_PWREx_EnableBatteryCharging | ( | uint32_t | ResistorSelection | ) |
Enable battery charging. When VDD is present, charge the external battery on VBAT thru an internal resistor.
| ResistorSelection | specifies the resistor impedance. This parameter can be one of the following values:
|
| None |
Definition at line 283 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableBORPVD_ULP | ( | void | ) |
Enable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes.
| None |
Definition at line 754 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableDSIPinsPDActivation | ( | void | ) |
Enable pull-down activation on DSI pins.
| None |
Definition at line 828 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableExtSMPS_0V95 | ( | void | ) |
Enable the CFLDO working @ 0.95V.
| None |
Definition at line 779 of file stm32l4xx_hal_pwr_ex.c.
| HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullDown | ( | uint32_t | GPIO, |
| uint32_t | GPIONumber | ||
| ) |
Enable GPIO pull-down state in Standby and Shutdown modes.
| GPIO | Specify the IO port. This parameter can be PWR_GPIO_A..PWR_GPIO_H (or PWR_GPIO_I depending on the devices) to select the GPIO peripheral. |
| GPIONumber | Specify the I/O pins numbers. This parameter can be one of the following values: PWR_GPIO_BIT_0, ..., PWR_GPIO_BIT_15 (except for the port where less I/O pins are available) or the logical OR of several of them to set several bits for a given port in a single API call. |
| HAL | Status |
Definition at line 552 of file stm32l4xx_hal_pwr_ex.c.
| HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullUp | ( | uint32_t | GPIO, |
| uint32_t | GPIONumber | ||
| ) |
Enable GPIO pull-up state in Standby and Shutdown modes.
| GPIO | Specify the IO port. This parameter can be PWR_GPIO_A, ..., PWR_GPIO_H (or PWR_GPIO_I depending on the devices) to select the GPIO peripheral. |
| GPIONumber | Specify the I/O pins numbers. This parameter can be one of the following values: PWR_GPIO_BIT_0, ..., PWR_GPIO_BIT_15 (except for the port where less I/O pins are available) or the logical OR of several of them to set several bits for a given port in a single API call. |
| HAL | Status |
Definition at line 392 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableInternalWakeUpLine | ( | void | ) |
Enable Internal Wake-up Line.
| None |
Definition at line 354 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableLowPowerRunMode | ( | void | ) |
Enter Low-power Run mode.
| None |
Definition at line 1100 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnablePullUpPullDownConfig | ( | void | ) |
Enable pull-up and pull-down configuration.
| None |
Definition at line 705 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnablePVM1 | ( | void | ) |
Enable the Power Voltage Monitoring 1: VDDUSB versus 1.2V.
| None |
Definition at line 849 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnablePVM2 | ( | void | ) |
Enable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V.
| None |
Definition at line 870 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnablePVM3 | ( | void | ) |
Enable the Power Voltage Monitoring 3: VDDA versus 1.62V.
| None |
Definition at line 890 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnablePVM4 | ( | void | ) |
Enable the Power Voltage Monitoring 4: VDDA versus 2.2V.
| None |
Definition at line 909 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableSRAM2ContentRetention | ( | void | ) |
Enable SRAM2 content retention in Standby mode.
| None |
Definition at line 730 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableSRAM3ContentRetention | ( | void | ) |
Enable SRAM3 content retention in Stop 2 mode.
| None |
Definition at line 805 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableVddIO2 | ( | void | ) |
Enable VDDIO2 supply.
| None |
Definition at line 333 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnableVddUSB | ( | void | ) |
Enable VDDUSB supply.
| None |
Definition at line 311 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnterSHUTDOWNMode | ( | void | ) |
Enter Shutdown mode.
| None |
Definition at line 1304 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnterSTOP0Mode | ( | uint8_t | STOPEntry | ) |
Enter Stop 0 mode.
| STOPEntry | specifies if Stop mode in entered with WFI or WFE instruction. This parameter can be one of the following values:
|
| None |
Definition at line 1159 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnterSTOP1Mode | ( | uint8_t | STOPEntry | ) |
Enter Stop 1 mode.
| STOPEntry | specifies if Stop mode in entered with WFI or WFE instruction. This parameter can be one of the following values:
|
| None |
Definition at line 1210 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_EnterSTOP2Mode | ( | uint8_t | STOPEntry | ) |
Enter Stop 2 mode.
| STOPEntry | specifies if Stop mode in entered with WFI or WFE instruction. This parameter can be one of the following values:
|
| None |
Definition at line 1262 of file stm32l4xx_hal_pwr_ex.c.
| uint32_t HAL_PWREx_GetVoltageRange | ( | void | ) |
Return Voltage Scaling Range.
| VOS | bit field (PWR_REGULATOR_VOLTAGE_RANGE1 or PWR_REGULATOR_VOLTAGE_RANGE2 or PWR_REGULATOR_VOLTAGE_SCALE1_BOOST when applicable) |
Definition at line 115 of file stm32l4xx_hal_pwr_ex.c.
| void HAL_PWREx_PVD_PVM_IRQHandler | ( | void | ) |
This function handles the PWR PVD/PVMx interrupt request.
| None |
Definition at line 1329 of file stm32l4xx_hal_pwr_ex.c.
| __weak void HAL_PWREx_PVM1Callback | ( | void | ) |
PWR PVM1 interrupt callback.
| None |
Definition at line 1385 of file stm32l4xx_hal_pwr_ex.c.
| __weak void HAL_PWREx_PVM2Callback | ( | void | ) |
PWR PVM2 interrupt callback.
| None |
Definition at line 1398 of file stm32l4xx_hal_pwr_ex.c.
| __weak void HAL_PWREx_PVM3Callback | ( | void | ) |
PWR PVM3 interrupt callback.
| None |
Definition at line 1410 of file stm32l4xx_hal_pwr_ex.c.
| __weak void HAL_PWREx_PVM4Callback | ( | void | ) |
PWR PVM4 interrupt callback.
| None |
Definition at line 1421 of file stm32l4xx_hal_pwr_ex.c.