|
Wirepas SDK
|
|
Go to the documentation of this file.
29 #ifndef APP_LIB_SLEEP_H_
30 #define APP_LIB_SLEEP_H_
39 #define APP_LIB_LONGSLEEP_NAME 0x02f20818
42 #define APP_LIB_LONGSLEEP_VERSION 0x203
90 uint32_t appconf_wait_s);
app_lib_sleep_wakeup_callback_f setOnWakeupCb
app_lib_sleep_stack_for_time_f sleepStackforTime
void(* app_lib_sleep_on_sleep_callback_f)(applib_on_sleep_callback_f callback)
Set callback function to be called when stack starts sleep.
void(* applib_on_sleep_callback_f)(void)
Callback called when stack starts sleep.
app_lib_sleep_stack_state_e
Stack state flags.
app_lib_sleep_get_gotosleep getSleepLatestGotosleep
app_res_e(* app_lib_sleep_stack_for_time_f)(uint32_t seconds, uint32_t appconf_wait_s)
Start stack sleeping period for a given time.
void(* app_lib_sleep_wakeup_callback_f)(applib_wakeup_callback_f callback)
Set callback function to be called before stack wakes up.
app_lib_sleep_get_sleep_state_f getSleepState
app_lib_sleep_get_wakeup_f getStackWakeup
uint32_t(* app_lib_sleep_get_gotosleep)(void)
Get latest time used before stack enters to sleep after NRLS sleep request given.
app_res_e(* app_lib_sleep_wakeup_stack_f)(void)
Wakeup stack from sleep.
app_lib_sleep_wakeup_stack_f wakeupStack
List of library functions.
app_lib_sleep_stack_state_e(* app_lib_sleep_get_sleep_state_f)(void)
Get sleep state of stack.
app_lib_sleep_on_sleep_callback_f setOnSleepCb
uint32_t(* app_lib_sleep_get_wakeup_f)(void)
Returns remaining sleep time in seconds.
void(* applib_wakeup_callback_f)(void)
Callback called before stack wakes up.