Functions

__STATIC_INLINE void ll_sleep_timer_set_clk (uint32_t value)
 Set the Sleep Timer clock. More...
 
__STATIC_INLINE uint32_t ll_sleep_timer_get_clk (void)
 Get the Sleep Timer clock. More...
 
__STATIC_INLINE void ll_sleep_timer_set_value (uint32_t value)
 Set the 32 bits Sleep Timer Value to WakeUp the MCU from DeepSleep Mode. More...
 
__STATIC_INLINE uint32_t ll_sleep_timer_get_value (void)
 Get the 32 bit Sleep Timer Value to WakeUp the MCU from DeepSleep Mode. More...
 
SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_sleep_timer_get_read_value (void)
 Get the real internal value of the sleep timer. More...
 
__STATIC_INLINE uint32_t ll_sleep_timer_is_runing (void)
 check the sleep timer runing state. More...
 
__STATIC_INLINE uint32_t ll_sleep_timer_is_busy (void)
 check the sleep timer busy state. More...
 
__STATIC_INLINE void ll_sleep_timer_set_mode (uint32_t mode)
 Set the Sleep Timer Work Mode. More...
 
__STATIC_INLINE void ll_sleep_timer_disable (void)
 disable sleep timer More...
 
__STATIC_INLINE void ll_sleep_timer_clear_sleep_event (void)
 clear wake up event by sleep timer More...
 

Detailed Description

Function Documentation

◆ ll_sleep_timer_clear_sleep_event()

__STATIC_INLINE void ll_sleep_timer_clear_sleep_event ( void  )

clear wake up event by sleep timer

Register|BitsName --------|-------- AON_SLP_EVENT | AON_CTL_SLP_EVENT_TIMER

Return values
None

Definition at line 244 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_disable()

__STATIC_INLINE void ll_sleep_timer_disable ( void  )

disable sleep timer

Register|BitsName --------|-------- SLP_TIMER_CFG_0 | AON_TIMER_SLEEP_TIMER_CFG0_EN

Return values
None

Definition at line 230 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_get_clk()

__STATIC_INLINE uint32_t ll_sleep_timer_get_clk ( void  )

Get the Sleep Timer clock.

Register|BitsName --------|-------- SLP_TIMER_CLK | slp_timer_clk_sel

Return values
SleepTimer clock source,the value can be the one of the following:

Definition at line 131 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_get_read_value()

SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_sleep_timer_get_read_value ( void  )

Get the real internal value of the sleep timer.

Register|BitsName --------|-------- SLP_TIMER_VAL_R | AON_CTL_SLP_TIMER_VAL_R_32B

Return values
32bit sleep Timer Count Value

Definition at line 174 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_get_value()

__STATIC_INLINE uint32_t ll_sleep_timer_get_value ( void  )

Get the 32 bit Sleep Timer Value to WakeUp the MCU from DeepSleep Mode.

Register|BitsName --------|-------- SLP_TIMER_VAL_W | AON_CTL_SLP_TIMER_VAL_W_32B

Return values
32bit AON Timer Count Value

Definition at line 160 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_is_busy()

__STATIC_INLINE uint32_t ll_sleep_timer_is_busy ( void  )

check the sleep timer busy state.

Register|BitsName --------|-------- SLP_TIMER_STS | AON_CTL_SLP_TIMER_STAT_BUSY

Return values
busystate of sleep timer (1 or 0).

Definition at line 202 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_is_runing()

__STATIC_INLINE uint32_t ll_sleep_timer_is_runing ( void  )

check the sleep timer runing state.

Register|BitsName --------|-------- SLP_TIMER_STS | AON_CTL_SLP_TIMER_STAT_STATUS

Return values
runingstate of sleep timer (1 or 0).

Definition at line 188 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_set_clk()

__STATIC_INLINE void ll_sleep_timer_set_clk ( uint32_t  value)

Set the Sleep Timer clock.

Register|BitsName --------|-------- SLP_TIMER_CLK | slp_timer_clk_sel

Parameters
valueThis parameter can be a one of the following values:
Return values
None

Definition at line 114 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_set_mode()

__STATIC_INLINE void ll_sleep_timer_set_mode ( uint32_t  mode)

Set the Sleep Timer Work Mode.

Register|BitsName --------|-------- SLP_TIMER_CFG_0 | AON_CTL_SLP_TIMER_CFG_0_MODE

Parameters
modeof Sleep Timer work
Return values
None

Definition at line 217 of file gr55xx_ll_sleep_timer.h.

◆ ll_sleep_timer_set_value()

__STATIC_INLINE void ll_sleep_timer_set_value ( uint32_t  value)

Set the 32 bits Sleep Timer Value to WakeUp the MCU from DeepSleep Mode.

Register|BitsName --------|-------- SLP_TIMER_VAL_W | AON_CTL_SLP_TIMER_VAL_W_32B

Parameters
value32 bits count value loaded into the 32bit_timer
Return values
None

Definition at line 146 of file gr55xx_ll_sleep_timer.h.