mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
28 lines
565 B
C
28 lines
565 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
|
|
typedef struct {
|
|
View* view;
|
|
bool exit_to_about;
|
|
} BatteryInfo;
|
|
|
|
typedef struct {
|
|
float vbus_voltage;
|
|
float gauge_voltage;
|
|
float gauge_current;
|
|
float gauge_temperature;
|
|
float charge_voltage_limit;
|
|
uint8_t charge;
|
|
uint8_t health;
|
|
bool alt;
|
|
} BatteryInfoModel;
|
|
|
|
BatteryInfo* battery_info_alloc(void);
|
|
|
|
void battery_info_free(BatteryInfo* battery_info);
|
|
|
|
View* battery_info_get_view(BatteryInfo* battery_info);
|
|
|
|
void battery_info_set_data(BatteryInfo* battery_info, BatteryInfoModel* data);
|