FLAG_Management

Functions

SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_pwr_get_ext_wakeup_status (void)
 Get the External Wake Up Status. More...
 
SECTION_RAM_CODE __STATIC_INLINE void ll_pwr_clear_ext_wakeup_status (uint32_t wakeup_pin)
 Clear the External Wake Up Status. More...
 
SECTION_RAM_CODE __STATIC_INLINE void ll_pwr_clear_wakeup_event (uint32_t event)
 Clear the Event that triggered the DeepSleep WakeUp. More...
 
SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_pwr_is_active_flag_comm_deep_sleep_stat (void)
 Indicate if the Communication Core is in Deep Sleep Mode. More...
 
SECTION_RAM_CODE __STATIC_INLINE void ll_pwr_disable_cache_module (void)
 Disable cache function. More...
 
__STATIC_INLINE void ll_pwr_set_dcdc_prepare_timing (uint32_t value)
 Set DCDC prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_dig_ldo_prepare_timing (uint32_t value)
 Set digtal LDO prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_fast_ldo_prepare_timing (uint32_t value)
 Set fast LDO prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_hf_osc_prepare_timing (uint32_t value)
 Set HF OSC prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_pll_lock_timing (uint32_t value)
 Set PLL lock prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_pll_prepare_timing (uint32_t value)
 Set PLL prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_pwr_switch_prepare_timing (uint32_t value)
 Set power switch prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_xo_prepare_timing (uint32_t value)
 Set Set XO prepare timing. More...
 
__STATIC_INLINE void ll_pwr_set_xo_bias_switch_timing (uint32_t value)
 Set Set XO Bias switch timing. More...
 
__STATIC_INLINE void ll_pwr_enable_fast_ldo_pwr_mode (void)
 Enable Fast LDO power mode. More...
 
__STATIC_INLINE void ll_pwr_turn_on_dcdc_after_wakeup (void)
 Turn on DCDC after wakeup. More...
 
__STATIC_INLINE void ll_pwr_turn_off_fast_ldo_in_regular_boot (void)
 Keep turn off Fast LDO in regular boot. More...
 
__STATIC_INLINE void ll_pwr_turn_off_enable_xo_pll_after_dcdc_ready (void)
 Turn off enable xo/pll in warm boot. More...
 
__STATIC_INLINE void ll_pwr_turn_on_enable_xo_pll_after_dcdc_ready (void)
 Turn on enable xo/pll in srpg. More...
 

Detailed Description

Function Documentation

◆ ll_pwr_clear_ext_wakeup_status()

SECTION_RAM_CODE __STATIC_INLINE void ll_pwr_clear_ext_wakeup_status ( uint32_t  wakeup_pin)

Clear the External Wake Up Status.

Register|BitsName --------|-------- EXT_WAKEUP_STAT | EXT_WKUP_STATUS

Parameters
wakeup_pinThis parameter can be a combination of the following values: LL_PWR_EXTWKUP_PIN0 LL_PWR_EXTWKUP_PIN1 LL_PWR_EXTWKUP_PIN2 LL_PWR_EXTWKUP_PIN3 LL_PWR_EXTWKUP_PIN4 LL_PWR_EXTWKUP_PIN5 LL_PWR_EXTWKUP_PIN6 LL_PWR_EXTWKUP_PIN7 LL_PWR_EXTWKUP_PIN_ALL
Return values
None

Definition at line 871 of file gr55xx_ll_pwr.h.

◆ ll_pwr_clear_wakeup_event()

SECTION_RAM_CODE __STATIC_INLINE void ll_pwr_clear_wakeup_event ( uint32_t  event)

Clear the Event that triggered the DeepSleep WakeUp.

Register|BitsName --------|-------- AON_SLEEP_EVENT | AON_SLEEP_EVENT

Parameters
eventThis parameter can be a combination of the following values:
Return values
None

Definition at line 898 of file gr55xx_ll_pwr.h.

References LL_PWR_WKUP_EVENT_ALL.

◆ ll_pwr_disable_cache_module()

SECTION_RAM_CODE __STATIC_INLINE void ll_pwr_disable_cache_module ( void  )

Disable cache function.

Note
The cache should be closed before chip go to deepsleep.

Register|BitsName --------|-------- CACHE.CTRL0 |EN

Return values
None

Definition at line 928 of file gr55xx_ll_pwr.h.

◆ ll_pwr_enable_fast_ldo_pwr_mode()

__STATIC_INLINE void ll_pwr_enable_fast_ldo_pwr_mode ( void  )

Enable Fast LDO power mode.

Register|BitsName --------|-------- AON_START_CFG | MCU_PWR_TYPE

Return values
None

Definition at line 1079 of file gr55xx_ll_pwr.h.

◆ ll_pwr_get_ext_wakeup_status()

SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_pwr_get_ext_wakeup_status ( void  )

Get the External Wake Up Status.

Note
0 means not waked up and 1 means waked up.

Register|BitsName --------|-------- EXT_WAKEUP_STAT | EXT_WKUP_STATUS

Return values
Returnedvalue can be a combination of the following values: LL_PWR_EXTWKUP_PIN0 LL_PWR_EXTWKUP_PIN1 LL_PWR_EXTWKUP_PIN2 LL_PWR_EXTWKUP_PIN3 LL_PWR_EXTWKUP_PIN4 LL_PWR_EXTWKUP_PIN5 LL_PWR_EXTWKUP_PIN6 LL_PWR_EXTWKUP_PIN7 LL_PWR_EXTWKUP_PIN_ALL

Definition at line 847 of file gr55xx_ll_pwr.h.

◆ ll_pwr_is_active_flag_comm_deep_sleep_stat()

SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_pwr_is_active_flag_comm_deep_sleep_stat ( void  )

Indicate if the Communication Core is in Deep Sleep Mode.

Note
When Communication Core is in Deep Sleep Mode, only low_power_clk is running.

Register|BitsName --------|-------- COMM_CTRL | COMM_DEEPSLCNTL_DEEP_SLEEP_STAT

Return values
Stateof bit (1 or 0).

Definition at line 913 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_dcdc_prepare_timing()

__STATIC_INLINE void ll_pwr_set_dcdc_prepare_timing ( uint32_t  value)

Set DCDC prepare timing.

Register|BitsName --------|-------- AON_PWR | DCDC

Parameters
valueTiming setting value.
Return values
None

Definition at line 944 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_dig_ldo_prepare_timing()

__STATIC_INLINE void ll_pwr_set_dig_ldo_prepare_timing ( uint32_t  value)

Set digtal LDO prepare timing.

Register|BitsName --------|-------- A_TIMING_CTRL0 | DIG_LDO

Parameters
valueTiming setting value.
Return values
None

Definition at line 959 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_fast_ldo_prepare_timing()

__STATIC_INLINE void ll_pwr_set_fast_ldo_prepare_timing ( uint32_t  value)

Set fast LDO prepare timing.

Register|BitsName --------|-------- A_TIMING_CTRL1 | FAST_LDO

Parameters
valueTiming setting value.
Return values
None

Definition at line 975 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_hf_osc_prepare_timing()

__STATIC_INLINE void ll_pwr_set_hf_osc_prepare_timing ( uint32_t  value)

Set HF OSC prepare timing.

Register|BitsName --------|-------- A_TIMING_CTRL1 | HF_OSC

Parameters
valueTiming setting value.
Return values
None

Definition at line 990 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_pll_lock_timing()

__STATIC_INLINE void ll_pwr_set_pll_lock_timing ( uint32_t  value)

Set PLL lock prepare timing.

Register|BitsName --------|-------- A_TIMING_CTRL2 | PLL_LOCK

Parameters
valueTiming setting value.
Return values
None

Definition at line 1005 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_pll_prepare_timing()

__STATIC_INLINE void ll_pwr_set_pll_prepare_timing ( uint32_t  value)

Set PLL prepare timing.

Register|BitsName --------|-------- A_TIMING_CTRL2 | PLL

Parameters
valueTiming setting value.
Return values
None

Definition at line 1020 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_pwr_switch_prepare_timing()

__STATIC_INLINE void ll_pwr_set_pwr_switch_prepare_timing ( uint32_t  value)

Set power switch prepare timing.

Register|BitsName --------|-------- A_TIMING_CTRL3 | PWR_SWITCH

Parameters
valueTiming setting value.
Return values
None

Definition at line 1035 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_xo_bias_switch_timing()

__STATIC_INLINE void ll_pwr_set_xo_bias_switch_timing ( uint32_t  value)

Set Set XO Bias switch timing.

Register|BitsName --------|-------- A_TIMING_CTRL4 | REG_TIMING_XO_BIAS_SW_PREP

Parameters
valueTiming setting value.
Return values
None

Definition at line 1065 of file gr55xx_ll_pwr.h.

◆ ll_pwr_set_xo_prepare_timing()

__STATIC_INLINE void ll_pwr_set_xo_prepare_timing ( uint32_t  value)

Set Set XO prepare timing.

Register|BitsName --------|-------- A_TIMING_CTRL3 | CTRL3_XO

Parameters
valueTiming setting value.
Return values
None

Definition at line 1050 of file gr55xx_ll_pwr.h.

◆ ll_pwr_turn_off_enable_xo_pll_after_dcdc_ready()

__STATIC_INLINE void ll_pwr_turn_off_enable_xo_pll_after_dcdc_ready ( void  )

Turn off enable xo/pll in warm boot.

Register|BitsName --------|-------- AON_START_CFG | AON_PWR_AON_START_CFG_XO_EN_PWR | AON_PWR_AON_START_CFG_PLL_EN_PWR

Return values
None

Definition at line 1121 of file gr55xx_ll_pwr.h.

◆ ll_pwr_turn_off_fast_ldo_in_regular_boot()

__STATIC_INLINE void ll_pwr_turn_off_fast_ldo_in_regular_boot ( void  )

Keep turn off Fast LDO in regular boot.

Register|BitsName --------|-------- AON_START_CFG | FAST_LDO_OFF

Return values
None

Definition at line 1107 of file gr55xx_ll_pwr.h.

◆ ll_pwr_turn_on_dcdc_after_wakeup()

__STATIC_INLINE void ll_pwr_turn_on_dcdc_after_wakeup ( void  )

Turn on DCDC after wakeup.

Register|BitsName --------|-------- AON_START_CFG | FAST_DCDC_OFF

Return values
None

Definition at line 1093 of file gr55xx_ll_pwr.h.

◆ ll_pwr_turn_on_enable_xo_pll_after_dcdc_ready()

__STATIC_INLINE void ll_pwr_turn_on_enable_xo_pll_after_dcdc_ready ( void  )

Turn on enable xo/pll in srpg.

Register|BitsName --------|-------- AON_START_CFG | AON_PWR_AON_START_CFG_XO_EN_PWR | AON_PWR_AON_START_CFG_PLL_EN_PWR

Return values
None

Definition at line 1134 of file gr55xx_ll_pwr.h.