#include "compiler.h"
Functions | |
void | sleepMgr_init (void) |
This function Initializes the Sleep functions. More... | |
bool | sleepMgr_sleep (uint32_t interval) |
This function puts the transceiver and device to sleep. More... | |
void sleepMgr_init | ( | void | ) |
This function Initializes the Sleep functions.
This function Initializes the Sleep functions.
References rtc_count_config::clear_on_match, configure_rtc_callbacks(), rtc_count_config::mode, rtc_count_config::prescaler, rtc_count_get_config_defaults(), rtc_count_init(), RTC_COUNT_MODE_32BIT, RTC_COUNT_PRESCALER_DIV_1, and rtc_instance.
Referenced by Initialize_Demo(), and wsndemo_init().
bool sleepMgr_sleep | ( | uint32_t | interval | ) |
This function puts the transceiver and device to sleep.
This function puts the transceiver and device to sleep.
References configure_rtc_callbacks(), MIN_SLEEP_INTERVAL, RTC_COUNT_COMPARE_0, rtc_count_enable(), rtc_count_set_compare(), rtc_instance, sleepExit(), sleepPreparation(), system_set_sleepmode(), system_sleep(), and SYSTEM_SLEEPMODE_STANDBY.
Referenced by APP_TaskHandler(), run_p2p_demo(), and run_star_demo().