mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
23 lines
519 B
C
23 lines
519 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
|
|
typedef struct BatteryInfo 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;
|
|
} 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);
|