PWR driver modules.
More...
PWR driver modules.
◆ PWR_BackupAccessCmd()
void PWR_BackupAccessCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables access to the RTC and backup registers.
- Parameters
-
NewState | new state of the access to the RTC and backup registers. This parameter can be: ENABLE or DISABLE. |
- Returns
- None
◆ PWR_ClearFlag()
void PWR_ClearFlag |
( |
uint32_t |
PWR_FLAG | ) |
|
Clears the PWR's pending flags.
- Parameters
-
PWR_FLAG | specifies the flag to clear. This parameter can be one of the following values:
- PWR_FLAG_WU: Wake Up flag
- PWR_FLAG_SB: StandBy flag
|
- Returns
- None
◆ PWR_DeInit()
Deinitializes the PWR peripheral registers to their default reset values.
- Parameters
-
- Returns
- None
◆ PWR_EnterSTANDBYMode()
void PWR_EnterSTANDBYMode |
( |
void |
| ) |
|
Enters STANDBY mode.
- Parameters
-
- Returns
- None
◆ PWR_EnterSTOPMode()
void PWR_EnterSTOPMode |
( |
uint32_t |
PWR_Regulator, |
|
|
uint8_t |
PWR_STOPEntry |
|
) |
| |
Enters STOP mode.
- Parameters
-
PWR_Regulator | specifies the regulator state in STOP mode. This parameter can be one of the following values:
- PWR_Regulator_ON: STOP mode with regulator ON
- PWR_Regulator_LowPower: STOP mode with regulator in low power mode
|
PWR_STOPEntry | specifies if STOP mode in entered with WFI or WFE instruction. This parameter can be one of the following values:
- PWR_STOPEntry_WFI: enter STOP mode with WFI instruction
- PWR_STOPEntry_WFE: enter STOP mode with WFE instruction
|
- Returns
- None
◆ PWR_GetFlagStatus()
FlagStatus PWR_GetFlagStatus |
( |
uint32_t |
PWR_FLAG | ) |
|
Checks whether the specified PWR flag is set or not.
- Parameters
-
PWR_FLAG | specifies the flag to check. This parameter can be one of the following values:
- PWR_FLAG_WU: Wake Up flag
- PWR_FLAG_SB: StandBy flag
- PWR_FLAG_PVDO: PVD Output
|
- Returns
- The new state of PWR_FLAG (SET or RESET).
◆ PWR_PVDCmd()
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. |
- Returns
- None
◆ PWR_PVDLevelConfig()
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_2V2: PVD detection level set to 2.2V
- PWR_PVDLevel_2V3: PVD detection level set to 2.3V
- PWR_PVDLevel_2V4: PVD detection level set to 2.4V
- PWR_PVDLevel_2V5: PVD detection level set to 2.5V
- PWR_PVDLevel_2V6: PVD detection level set to 2.6V
- PWR_PVDLevel_2V7: PVD detection level set to 2.7V
- PWR_PVDLevel_2V8: PVD detection level set to 2.8V
- PWR_PVDLevel_2V9: PVD detection level set to 2.9V
|
- Returns
- None
◆ PWR_WakeUpPinCmd()
void PWR_WakeUpPinCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the WakeUp Pin functionality.
- Parameters
-
NewState | new state of the WakeUp Pin functionality. This parameter can be: ENABLE or DISABLE. |
- Returns
- None