MG32F10x Standard Peripherals Firmware Library
|
Functions | |
void | PWR_BackupAccessCmd (FunctionalState NewState) |
Enables or disables access to the RTC and backup registers. More... | |
void | PWR_WakeUpPinCmd (FunctionalState NewState) |
Enables or disables the WakeUp Pin functionality. More... | |
void | PWR_EnterSLEEPMode (uint8_t PWR_FCLK, uint8_t PWR_EntryMode) |
Enters SLEEP mode. More... | |
void | PWR_EnterSTOPMode (uint16_t PWR_STOPMode, uint8_t PWR_EntryMode) |
Enters STOP mode. More... | |
void | PWR_EnterSTANDBYMode (void) |
Enters STANDBY mode. More... | |
FlagStatus | PWR_GetFlagStatus (uint32_t PWR_FLAG) |
Checks whether the specified PWR flag is set or not. More... | |
void | PWR_ClearFlag (uint32_t PWR_FLAG) |
Clears the PWR's pending flags. More... | |
void | PWR_UnlockANA (void) |
Disable ANCTL register write-protection function. More... | |
void | PWR_LockANA (void) |
Enable ANCTL register write-protection function. More... | |
void PWR_BackupAccessCmd | ( | FunctionalState | NewState | ) |
Enables or disables access to the RTC and backup registers.
NewState | new state of the access to the RTC and backup registers. This parameter can be: ENABLE or DISABLE. |
void PWR_ClearFlag | ( | uint32_t | PWR_FLAG | ) |
Clears the PWR's pending flags.
PWR_FLAG | specifies the flag to clear. This parameter can be one of the following values:
|
void PWR_EnterSLEEPMode | ( | uint8_t | PWR_FCLK, |
uint8_t | PWR_EntryMode | ||
) |
Enters SLEEP mode.
PWR_FCLK | specifies the M3 FCLK frequency in SLEEP mode. This parameter can be one of the following values:
|
PWR_EntryMode | specifies enter SLEEP mode with WFI or WFE instruction. This parameter can be one of the following values:
|
void PWR_EnterSTANDBYMode | ( | void | ) |
Enters STANDBY mode.
None |
void PWR_EnterSTOPMode | ( | uint16_t | PWR_STOPMode, |
uint8_t | PWR_EntryMode | ||
) |
Enters STOP mode.
PWR_STOPMode | specifies the STOP mode. This parameter can be one of the following values:
|
PWR_EntryMode | specifies enter STOP mode with WFI or WFE instruction. This parameter can be one of the following values:
|
FlagStatus PWR_GetFlagStatus | ( | uint32_t | PWR_FLAG | ) |
Checks whether the specified PWR flag is set or not.
PWR_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
void PWR_LockANA | ( | void | ) |
Enable ANCTL register write-protection function.
None |
void PWR_UnlockANA | ( | void | ) |
Disable ANCTL register write-protection function.
None |
void PWR_WakeUpPinCmd | ( | FunctionalState | NewState | ) |
Enables or disables the WakeUp Pin functionality.
NewState | new state of the WakeUp Pin functionality. This parameter can be: ENABLE or DISABLE. |