mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 19:36:36 +03:00
b85cc7f788
* New power screen UI * API HAL Power: add VBUS voltage to API Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
30 lines
571 B
C
30 lines
571 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;
|
|
float voltage_vbus;
|
|
|
|
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);
|