MG32F10x Standard Peripherals Firmware Library

宏定义 | 函数
mg32f10x_pwr.h 文件参考

This file contains all the functions prototypes for the PWR firmware library. 更多...

`#include "mg32f10x.h"`

浏览源代码.

## 宏定义
#define | PWR_EntryMode_WFI ((uint8_t)0x01)
#define | PWR_EntryMode_WFE ((uint8_t)0x02)
#define | PWR_FCLK_NoChange 0x00
#define | PWR_FCLK_Div2 0x01
#define | PWR_STOPMode_LP1 0x0001
#define | PWR_STOPMode_LP2 0x0002
#define | PWR_STOPMode_LP3_S32KON 0x0003
#define | PWR_STOPMode_LP3_S32KOFF 0x0103
#define | PWR_STOPMode_LP4_S32KON 0x0004
#define | PWR_STOPMode_LP4_S32KOFF 0x0104
#define | PWR_FLAG_PVDO ((uint32_t)0x00000001)
#define | PWR_FLAG_WU ((uint32_t)0x00000101)
#define | PWR_FLAG_SB ((uint32_t)0x00000102)
#define | PWR_FLAG_SP ((uint32_t)0x00000104)
#define | PWR_FLAG_CK ((uint32_t)0x00000108)

## 函数
void | PWR_BackupAccessCmd (FunctionalState NewState)
| Enables or disables access to the RTC and backup registers. 更多...
void | PWR_WakeUpPinCmd (FunctionalState NewState)
| Enables or disables the WakeUp Pin functionality. 更多...
void | PWR_EnterSLEEPMode (uint8_t PWR_FCLK, uint8_t PWR_EntryMode)
| Enters SLEEP mode. 更多...
void | PWR_EnterSTOPMode (uint16_t PWR_STOPMode, uint8_t PWR_EntryMode)
| Enters STOP mode. 更多...
void | PWR_EnterSTANDBYMode (void)
| Enters STANDBY mode. 更多...
FlagStatus | PWR_GetFlagStatus (uint32_t PWR_FLAG)
| Checks whether the specified PWR flag is set or not. 更多...
void | PWR_ClearFlag (uint32_t PWR_FLAG)
| Clears the PWR's pending flags. 更多...
void | PWR_UnlockANA (void)
| Disable ANCTL register write-protection function. 更多...
void | PWR_LockANA (void)
| Enable ANCTL register write-protection function. 更多...

## 详细描述

This file contains all the functions prototypes for the PWR firmware library.

作者
  megawin Application Team

版本
  V0.1.10

日期
  05-January-2023