SleepHelper
Data Fields | Static Public Attributes
SleepHelper::AppCallbackState Class Reference

State data for AppCallbackWithState. More...

#include <SleepHelper.h>

Data Fields

int callbackState = CALLBACK_STATE_START
 The current state of this callback.
 
void * callbackData = 0
 Callback can store data here.
 

Static Public Attributes

static const int CALLBACK_STATE_START = -1
 The callback has just started this wake cycle.
 
static const int CALLBACK_START_RETURNED_FALSE = -2
 The callback return false and should not be called again for this wake cycle.
 

Detailed Description

State data for AppCallbackWithState.

The state data includes an integer state number. Callbacks can also store additional data in the callbackData field.

Since callbacks are typically never removed, you can put an allocated pointer in the callbackData field.


The documentation for this class was generated from the following file: