mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-30 06:33:07 +00:00
32 lines
599 B
C
32 lines
599 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <stdbool.h>
|
||
|
#include <gui/canvas.h>
|
||
|
#include <flipper_v2.h>
|
||
|
#include <gui/view.h>
|
||
|
|
||
|
typedef enum { PowerViewInfo } 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;
|
||
|
} PowerInfoModel;
|
||
|
|
||
|
static uint32_t power_info_back_callback(void* context) {
|
||
|
return VIEW_NONE;
|
||
|
}
|
||
|
|
||
|
void power_info_draw_callback(Canvas* canvas, void* context);
|