Idle/Sleep Callbacks#
These callbacks are contributed by the Idle/Sleep plugin.
Functions#
Ok To Sleep.
Wake Up.
Ok To Idle.
Active.
RTOS idle/sleep.
Active.
Function Documentation#
emberAfPluginIdleSleepOkToSleepCallback#
bool emberAfPluginIdleSleepOkToSleepCallback (uint32_t durationMs)
Ok To Sleep.
N/A | durationMs | The maximum duration in milliseconds that the device will sleep. Ver.: always |
This function is called by the Idle/Sleep plugin before sleeping. It is called with interrupts disabled. The application should return true if the device may sleep or false otherwise.
584
of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/ncp/doc/callback.doc
emberAfPluginIdleSleepWakeUpCallback#
void emberAfPluginIdleSleepWakeUpCallback (uint32_t durationMs)
Wake Up.
N/A | durationMs | The duration in milliseconds that the device slept. Ver.: always |
This function is called by the Idle/Sleep plugin after sleeping.
596
of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/ncp/doc/callback.doc
emberAfPluginIdleSleepOkToIdleCallback#
bool emberAfPluginIdleSleepOkToIdleCallback (void )
Ok To Idle.
N/A |
This function is called by the Idle/Sleep plugin before idling. It is called with interrupts disabled. The application should return true if the device may idle or false otherwise.
607
of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/ncp/doc/callback.doc
emberAfPluginIdleSleepActiveCallback#
void emberAfPluginIdleSleepActiveCallback (void )
Active.
N/A |
This function is called by the Idle/Sleep plugin after idling.
617
of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/ncp/doc/callback.doc
emberAfPluginIdleSleepRtosCallback#
bool emberAfPluginIdleSleepRtosCallback (uint32_t * durationMs, bool sleepOk)
RTOS idle/sleep.
N/A | durationMs | A pointer to the allowed idle/sleep duration in milliseconds. Ver.: always |
N/A | sleepOk | A boolean indicating whether sleep is allowed. |
This function is called by the Idle/Sleep plugin before idling or sleeping. If it returns true, the RTOS is handling the MCU idling/sleeping, if it returns false the idle/sleep shall manage the actual MCU idling/sleeping.
632
of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/ncp/doc/callback.doc
emberAfPluginIdleSleepPreEm4ResetCallback#
bool emberAfPluginIdleSleepPreEm4ResetCallback (uint32_t * sleepDurationMs)
Active.
N/A | sleepDurationMs |
This function is called by the Idle/Sleep plugin before em4 reset, and it is implemented by EM4 plugin.
643
of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/ncp/doc/callback.doc