Force sleep and Wakeup#

API and Callbacks for the Zigbee Force sleep and Wakeup Component.

This component can put the zigbee device to sleep immediately through CLI and wakeup with a GPIO interrupt (by pressing Button 1 of WSTK)

Modules#

Force Sleep callback

API#

void

Puts Zigbee device to sleep immediately.

void

Makes Zigbee device to undo force sleep.

API Documentation#

sl_zigbee_app_framework_force_stop#

void sl_zigbee_app_framework_force_stop (void)

Puts Zigbee device to sleep immediately.

Parameters
N/A

This API will purge queues, cancel all polls & events and calls rail idle to satisfy all conditions needed to go to EM2. Removes EM1 requirement if set which allows power manager to sleep.


Definition at line 47 of file app/framework/plugin/force-sleep-wakeup/force-sleep-wakeup.h

sl_zigbee_app_framework_force_wakeup#

void sl_zigbee_app_framework_force_wakeup (void)

Makes Zigbee device to undo force sleep.

Parameters
N/A

This API will check all conditions, bring back the radio in RX mode, then calls the power manager and makes sure the correct EM requirements are set which will cause a proper wakeup


Definition at line 56 of file app/framework/plugin/force-sleep-wakeup/force-sleep-wakeup.h

Function Documentation#

sli_zigbee_app_framework_get_force_sleep_flag#

bool sli_zigbee_app_framework_get_force_sleep_flag (void)
Parameters
N/A

Definition at line 60 of file app/framework/plugin/force-sleep-wakeup/force-sleep-wakeup.h