Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ersa::runtime::SleepEligibility Struct Reference

#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}
 

Detailed Description

Inputs that must all permit sleep before the platform lock may be released.

Member Function Documentation

◆ maySleep()

bool ersa::runtime::SleepEligibility::maySleep ( ) const
inline

Return true only when no runtime owner requires the CPU to stay awake.

Member Data Documentation

◆ consoleAttached

bool ersa::runtime::SleepEligibility::consoleAttached {false}

True while the debug/control transport is attached and must stay alive.

◆ displayBusy

bool ersa::runtime::SleepEligibility::displayBusy {false}

True while the panel is still completing a physical update.

◆ featureLeaseHeld

bool ersa::runtime::SleepEligibility::featureLeaseHeld {false}

True while a feature lease prevents the runtime from sleeping.

◆ foregroundWorkActive

bool ersa::runtime::SleepEligibility::foregroundWorkActive {false}

True during a call, portal, or other foreground operation.

◆ networkWorkActive

bool ersa::runtime::SleepEligibility::networkWorkActive {false}

True while network work owns radio or transport resources.

◆ pendingWork

bool ersa::runtime::SleepEligibility::pendingWork {false}

True while input or app state still has work awaiting dispatch/render.

◆ userIdle

bool ersa::runtime::SleepEligibility::userIdle {false}

True after the product's user-interaction idle threshold has elapsed.

◆ wakeSourcesReady

bool ersa::runtime::SleepEligibility::wakeSourcesReady {false}

True when GPIO/timer sources are configured to recover the UI task.


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