Functions

hal_status_t hal_sleep_timer_config_and_start (uint8_t mode, uint32_t value)
 Configure the AON Sleep Timer mode, count and start used to wakeup MCU. More...
 
void hal_sleep_timer_stop (void)
 stop Sleep Timer More...
 
uint32_t hal_sleep_timer_get_current_value (void)
 Get the current value of sleep timer. More...
 
uint32_t hal_sleep_timer_get_clock_freq (void)
 Get clock frequency of sleep timer. More...
 
uint8_t hal_sleep_timer_status_get (void)
 get sleep timer is running or not More...
 

Detailed Description

Function Documentation

◆ hal_sleep_timer_config_and_start()

hal_status_t hal_sleep_timer_config_and_start ( uint8_t  mode,
uint32_t  value 
)

Configure the AON Sleep Timer mode, count and start used to wakeup MCU.

Parameters
[in]modeSpecifies the sleep timer mode. This parameter can be a combination of the following values:
[in]valueCount value of the AON Sleep Timer.
Return values
HAL_OKOperation is OK.
HAL_ERROROperation is ERROR.

◆ hal_sleep_timer_get_clock_freq()

uint32_t hal_sleep_timer_get_clock_freq ( void  )

Get clock frequency of sleep timer.

Return values
clockfrequency of sleep timer

◆ hal_sleep_timer_get_current_value()

uint32_t hal_sleep_timer_get_current_value ( void  )

Get the current value of sleep timer.

Return values
thecurrent value of sleep timer

◆ hal_sleep_timer_status_get()

uint8_t hal_sleep_timer_status_get ( void  )

get sleep timer is running or not

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

◆ hal_sleep_timer_stop()

void hal_sleep_timer_stop ( void  )

stop Sleep Timer