12#define RECORD_POWER "power"
19 PowerBootModeUpdateStart,
23 PowerEventTypeStopCharging,
24 PowerEventTypeStartCharging,
25 PowerEventTypeFullyCharged,
26 PowerEventTypeBatteryLevelChanged,
30 uint8_t battery_level;
41 bool is_shutdown_requested;
43 float current_charger;
46 float voltage_battery_charge_limit;
47 float voltage_charger;
51 uint32_t capacity_remaining;
52 uint32_t capacity_full;
54 float temperature_charger;
55 float temperature_gauge;
63void power_off(
Power* power);
69void power_reboot(
Power* power, PowerBootMode mode);
90bool power_is_battery_healthy(
Power* power);
97void power_enable_low_battery_level_notification(
Power* power,
bool enable);