# HAL Power Modes

## Summary

Typedefs

- AppResumeAddress_t : Function pointer for the application return address.
- AppPeripheralFunc_t : Function pointer for the peripheral reconfiguration addresses.

Variables

- app_lowpower_mode_cfg : Default low-power system configuration.

Data Structures

- RetentionRegCfg_t : Sleep Mode retention regulator configuration.
- StandbyTrimCfg_t : Standby Mode retention regulator configuration.
- ClockCfg_t : Run Mode clock configuration.
- LowPowerModeCfg_t : Power Mode configuration.

Enumerations

- PowerMode_t : Power Mode options available for the system.
- RetentionType_t : Retention options available for Sleep Mode.

Macros

- POWER_MODES_BLE_NOT_PRESENT : Options to set if the application makes use of Bluetooth.
- POWER_MODES_BLE_PRESENT
- VDDT_RETENTION_DISABLE : VDDT baseband retention regulator options.
- VDDT_RETENTION_ENABLE
- VDDC_RETENTION_DISABLE : VDDC core digital retention regulator options.
- VDDC_RETENTION_ENABLE
- VDDM_RETENTION_TRIM_PRESET : Sleep retention regulator configuration presets.
- VDDT_RETENTION_ENABLE_PRESET
- VDDC_RETENTION_TRIM_PRESET
- VDDACS_RETENTION_TRIM_PRESET
- VCC_RETENTION_TRIM
- WAKEUP_CTRL_FLAGS_TO_CLEAR_BITS : Convert wakeup flags to clear bits.
- WAKEUP_ALL_FLAGS_CLEAR : Clear all of the sticky wakeup flags.
- WAKEUP_GPIO0_FLAG_CLEAR : Clear sticky wakeup flags.
- WAKEUP_GPIO1_FLAG_CLEAR
- WAKEUP_GPIO2_FLAG_CLEAR
- WAKEUP_GPIO3_FLAG_CLEAR
- WAKEUP_BB_TIMER_FLAG_CLEAR
- WAKEUP_RTC_ALARM_FLAG_CLEAR
- WAKEUP_RTC_CLOCK_FLAG_CLEAR
- WAKEUP_RTC_OVERFLOW_FLAG_CLEAR
- WAKEUP_DCDC_OVERLOAD_FLAG_CLEAR
- WAKEUP_ACOMP_FLAG_CLEAR
- WAKEUP_FIFO_FULL_FLAG_CLEAR
- WAKEUP_THRESHOLD_FULL_FLAG_CLEAR

Functions

- Sys_PowerModes_SetWakeupConfig : Set up the wakeup configuration.
- Sys_PowerModes_EnableWakeupSources : Enable one or more wakeup sources.
- Sys_PowerModes_DisableWakeupSources : Disable one or more wakeup sources.
- Sys_PowerModes_EnterPowerMode : Enter a low-power mode based on the provided configuration.
- Sys_PowerModes_WakeupWithReset : Wakeup from flash after a sleep reset.
- Sys_PowerModes_IdleUntilBBAwake : Place the system into Idle Mode until the baseband is awake.