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
TypeDirectionArgument NameDescription
voidN/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.


sl_zigbee_app_framework_force_wakeup#

void sl_zigbee_app_framework_force_wakeup (void )

Makes Zigbee device to undo force sleep.

Parameters
TypeDirectionArgument NameDescription
voidN/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


Function Documentation#

sli_zigbee_app_framework_get_force_sleep_flag#

bool sli_zigbee_app_framework_get_force_sleep_flag (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A