 cfa76f19d0
			
		
	
	
		cfa76f19d0
		
			
		
	
	
	
	
		
			
			* 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>
		
			
				
	
	
		
			29 lines
		
	
	
		
			547 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			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);
 |