power_views.h 547 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. #include <furi.h>
  5. #include <gui/canvas.h>
  6. #include <gui/view.h>
  7. typedef enum { PowerViewInfo, PowerViewDialog } PowerView;
  8. typedef struct {
  9. float current_charger;
  10. float current_gauge;
  11. float voltage_charger;
  12. float voltage_gauge;
  13. uint32_t capacity_remaining;
  14. uint32_t capacity_full;
  15. float temperature_charger;
  16. float temperature_gauge;
  17. uint8_t charge;
  18. uint8_t health;
  19. } PowerInfoModel;
  20. void power_info_draw_callback(Canvas* canvas, void* context);