PVD configuration functions.
More...
|
void | PWR_PVDLevelConfig (uint32_t PWR_PVDLevel) |
| Configures the voltage threshold detected by the Power Voltage Detector(PVD). More...
|
|
void | PWR_PVDCmd (FunctionalState NewState) |
| Enables or disables the Power Voltage Detector(PVD). More...
|
|
PVD configuration functions.
===============================================================================
##### PVD configuration functions #####
===============================================================================
[..]
(+) The PVD is used to monitor the VDD power supply by comparing it to a
threshold selected by the PVD Level (PLS[2:0] bits in the PWR_CR).
(+) A PVDO flag is available to indicate if VDD/VDDA is higher or lower
than the PVD threshold. This event is internally connected to the EXTI
line16 and can generate an interrupt if enabled through the EXTI registers.
(+) The PVD is stopped in Standby mode.
void PWR_PVDCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the Power Voltage Detector(PVD).
- Parameters
-
NewState | new state of the PVD. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 222 of file stm32f4xx_pwr.c.
void PWR_PVDLevelConfig |
( |
uint32_t |
PWR_PVDLevel | ) |
|
Configures the voltage threshold detected by the Power Voltage Detector(PVD).
- Parameters
-
PWR_PVDLevel | specifies the PVD detection level This parameter can be one of the following values:
- PWR_PVDLevel_0
- PWR_PVDLevel_1
- PWR_PVDLevel_2
- PWR_PVDLevel_3
- PWR_PVDLevel_4
- PWR_PVDLevel_5
- PWR_PVDLevel_6
- PWR_PVDLevel_7
|
- Note
- Refer to the electrical characteristics of your device datasheet for more details about the voltage threshold corresponding to each detection level.
- Return values
-
Definition at line 197 of file stm32f4xx_pwr.c.