power_views.h 599 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. #include <gui/canvas.h>
  5. #include <flipper_v2.h>
  6. #include <gui/view.h>
  7. typedef enum { PowerViewInfo } 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. } PowerInfoModel;
  19. static uint32_t power_info_back_callback(void* context) {
  20. return VIEW_NONE;
  21. }
  22. void power_info_draw_callback(Canvas* canvas, void* context);