flipperzero-firmware/applications/power/power_views.h
gornekich cfa76f19d0
[FL-905] Add battery health state monitoring in power app (#358)
* add battery health reading from gauge
* add battery health reading to api-hal-power
* update battery health in power application

Co-authored-by: あく <alleteam@gmail.com>
2021-03-02 19:07:26 +03:00

29 lines
547 B
C

#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <furi.h>
#include <gui/canvas.h>
#include <gui/view.h>
typedef enum { PowerViewInfo, PowerViewDialog } PowerView;
typedef struct {
float current_charger;
float current_gauge;
float voltage_charger;
float voltage_gauge;
uint32_t capacity_remaining;
uint32_t capacity_full;
float temperature_charger;
float temperature_gauge;
uint8_t charge;
uint8_t health;
} PowerInfoModel;
void power_info_draw_callback(Canvas* canvas, void* context);