STM8L15x Standard Peripherals Drivers
|
stm8l15x_pwr.h File Reference
This file contains all the functions prototypes for the PWR firmware library. More...
#include "stm8l15x.h"
Go to the source code of this file.
Defines | |
#define | IS_PWR_FLAG(FLAG) |
#define | IS_PWR_PVD_LEVEL(LEVEL) |
Enumerations | |
enum | PWR_FLAG_TypeDef { PWR_FLAG_PVDOF = (uint8_t)0x40, PWR_FLAG_PVDIF = (uint8_t)0x20, PWR_FLAG_VREFINTF = (uint8_t)0x01 } |
enum | PWR_PVDLevel_TypeDef { PWR_PVDLevel_1V85 = (uint8_t)0x00, PWR_PVDLevel_2V05 = (uint8_t)0x02, PWR_PVDLevel_2V26 = (uint8_t)0x04, PWR_PVDLevel_2V45 = (uint8_t)0x06, PWR_PVDLevel_2V65 = (uint8_t)0x08, PWR_PVDLevel_2V85 = (uint8_t)0x0A, PWR_PVDLevel_3V05 = (uint8_t)0x0C, PWR_PVDLevel_PVDIn = (uint8_t)0x0E } |
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
This file contains all the functions prototypes for the PWR firmware library.
- Attention:
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
© COPYRIGHT 2011 STMicroelectronics
Definition in file stm8l15x_pwr.h.