Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

PVD configuration functions

PVD configuration functions
[PWR_Private_Functions]

PVD configuration functions. More...

Functions

void PWR_PVDLevelConfig (uint32_t PWR_PVDLevel)
 Configures the voltage threshold detected by the Power Voltage Detector(PVD).
void PWR_PVDCmd (FunctionalState NewState)
 Enables or disables the Power Voltage Detector(PVD).

Detailed Description

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.


Function Documentation

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:
None

Definition at line 183 of file stm32f30x_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: PVD detection level set to 2.18V
  • PWR_PVDLevel_1: PVD detection level set to 2.28V
  • PWR_PVDLevel_2: PVD detection level set to 2.38V
  • PWR_PVDLevel_3: PVD detection level set to 2.48V
  • PWR_PVDLevel_4: PVD detection level set to 2.58V
  • PWR_PVDLevel_5: PVD detection level set to 2.68V
  • PWR_PVDLevel_6: PVD detection level set to 2.78V
  • PWR_PVDLevel_7: PVD detection level set to 2.88V
Return values:
None

Definition at line 158 of file stm32f30x_pwr.c.