|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <scheduler.h>
Public Member Functions | |
| bool | maySleep () const |
Public Attributes | |
| bool | wakeSourcesReady {false} |
| bool | consoleAttached {false} |
| bool | userIdle {false} |
| bool | foregroundWorkActive {false} |
| bool | networkWorkActive {false} |
| bool | displayBusy {false} |
| bool | featureLeaseHeld {false} |
| bool | pendingWork {false} |
Inputs that must all permit sleep before the platform lock may be released.
|
inline |
Return true only when no runtime owner requires the CPU to stay awake.
| bool ersa::runtime::SleepEligibility::consoleAttached {false} |
True while the debug/control transport is attached and must stay alive.
| bool ersa::runtime::SleepEligibility::displayBusy {false} |
True while the panel is still completing a physical update.
| bool ersa::runtime::SleepEligibility::featureLeaseHeld {false} |
True while a feature lease prevents the runtime from sleeping.
| bool ersa::runtime::SleepEligibility::foregroundWorkActive {false} |
True during a call, portal, or other foreground operation.
| bool ersa::runtime::SleepEligibility::networkWorkActive {false} |
True while network work owns radio or transport resources.
| bool ersa::runtime::SleepEligibility::pendingWork {false} |
True while input or app state still has work awaiting dispatch/render.
| bool ersa::runtime::SleepEligibility::userIdle {false} |
True after the product's user-interaction idle threshold has elapsed.
| bool ersa::runtime::SleepEligibility::wakeSourcesReady {false} |
True when GPIO/timer sources are configured to recover the UI task.