Functions

PVD configuration functions. More...

Collaboration diagram for PVD configuration functions:

Functions

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

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.
 ===============================================================================
                    ##### 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
NewStatenew state of the PVD. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 215 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_PVDLevelspecifies 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
None
Parameters
PWR_PVDLevelspecifies 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 190 of file stm32f4xx_pwr.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:29