PebbleOS
Loading...
Searching...
No Matches
Functions
battery_monitor.h File Reference
#include <pbl/services/battery/battery_state.h>
#include <pbl/services/new_timer/new_timer.h>
#include <stdbool.h>

Functions

void battery_monitor_init (void)
 Initialize the monitor and battery state tracking.
 
void battery_monitor_handle_state_change_event (PreciseBatteryChargeState state)
 Update the power state after a battery state change.
 
bool battery_monitor_critical_lockout (void)
 Check whether the UI must be locked out because the battery is critical.
 
TimerID battery_monitor_get_standby_timer_id (void)
 Get the standby timer, for unit tests.