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