STM8L15x Standard Peripherals Drivers
|
PWR driver modules. More...
Modules | |
PWR_Exported_Types | |
PWR_Private_Functions | |
Functions | |
void | PWR_DeInit (void) |
Deinitializes the PWR peripheral registers to their default reset values. | |
void | PWR_FastWakeUpCmd (FunctionalState NewState) |
Enables or disables the Fast WakeUp from Ultra Low Power mode. | |
FlagStatus | PWR_GetFlagStatus (PWR_FLAG_TypeDef PWR_FLAG) |
Checks whether the specified PWR flag is set or not. | |
void | PWR_PVDClearFlag (void) |
Clears the PWR PVDIF Flag. | |
void | PWR_PVDClearITPendingBit (void) |
Clears the PWR interrupt pending bit. | |
void | PWR_PVDCmd (FunctionalState NewState) |
Enables or disables the Power Voltage Detector(PVD). | |
ITStatus | PWR_PVDGetITStatus (void) |
Checks whether the PVD interrupt has occurred or not. | |
void | PWR_PVDITConfig (FunctionalState NewState) |
Configures the Programmable Voltage Detector (PVD) Interrupt . | |
void | PWR_PVDLevelConfig (PWR_PVDLevel_TypeDef PWR_PVDLevel) |
Configures the voltage threshold detected by the Power Voltage Detector(PVD). | |
void | PWR_UltraLowPowerCmd (FunctionalState NewState) |
Enables or disables the Ultra Low Power mode. |
Detailed Description
PWR driver modules.
Function Documentation
void PWR_DeInit | ( | void | ) |
Deinitializes the PWR peripheral registers to their default reset values.
Definition at line 76 of file stm8l15x_pwr.c.
References PWR, PWR_CSR1_PVDIF, and PWR_CSR2_RESET_VALUE.
void PWR_FastWakeUpCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Fast WakeUp from Ultra Low Power mode.
Definition at line 165 of file stm8l15x_pwr.c.
References DISABLE, IS_FUNCTIONAL_STATE, PWR, and PWR_CSR2_FWU.
FlagStatus PWR_GetFlagStatus | ( | PWR_FLAG_TypeDef | PWR_FLAG | ) |
Checks whether the specified PWR flag is set or not.
Definition at line 255 of file stm8l15x_pwr.c.
References IS_PWR_FLAG, PWR, PWR_CR2_VREFINTF, PWR_FLAG_VREFINTF, RESET, and SET.
void PWR_PVDClearFlag | ( | void | ) |
Clears the PWR PVDIF Flag.
Definition at line 294 of file stm8l15x_pwr.c.
References PWR, and PWR_CSR1_PVDIF.
void PWR_PVDClearITPendingBit | ( | void | ) |
Clears the PWR interrupt pending bit.
Definition at line 330 of file stm8l15x_pwr.c.
References PWR, and PWR_CSR1_PVDIF.
void PWR_PVDCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Power Voltage Detector(PVD).
Definition at line 115 of file stm8l15x_pwr.c.
References DISABLE, IS_FUNCTIONAL_STATE, PWR, and PWR_CSR1_PVDE.
ITStatus PWR_PVDGetITStatus | ( | void | ) |
Checks whether the PVD interrupt has occurred or not.
Definition at line 305 of file stm8l15x_pwr.c.
References PWR, PWR_CSR1_PVDIEN, PWR_CSR1_PVDIF, RESET, and SET.
void PWR_PVDITConfig | ( | FunctionalState | NewState | ) |
Configures the Programmable Voltage Detector (PVD) Interrupt .
Definition at line 226 of file stm8l15x_pwr.c.
References DISABLE, IS_FUNCTIONAL_STATE, PWR, and PWR_CSR1_PVDIEN.
void PWR_PVDLevelConfig | ( | PWR_PVDLevel_TypeDef | PWR_PVDLevel | ) |
Configures the voltage threshold detected by the Power Voltage Detector(PVD).
Definition at line 96 of file stm8l15x_pwr.c.
References IS_PWR_PVD_LEVEL, PWR, and PWR_CSR1_PLS.
void PWR_UltraLowPowerCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Ultra Low Power mode.
Definition at line 188 of file stm8l15x_pwr.c.
References DISABLE, IS_FUNCTIONAL_STATE, PWR, and PWR_CSR2_ULP.