nrf24batch.h 613 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include <gui/gui.h>
  3. #include <gui/view.h>
  4. #include <gui/view_dispatcher.h>
  5. #include <gui/modules/submenu.h>
  6. #include <gui/modules/dialog_ex.h>
  7. #include <toolbox/stream/file_stream.h>
  8. #include <notification/notification_messages.h>
  9. typedef enum {
  10. EventTypeTick,
  11. EventTypeKey,
  12. } EventType;
  13. typedef struct {
  14. EventType type;
  15. InputEvent input;
  16. } PluginEvent;
  17. typedef struct {
  18. int x;
  19. int y;
  20. } PluginState;
  21. typedef struct {
  22. Gui* gui;
  23. FuriMessageQueue* event_queue;
  24. PluginState* plugin_state;
  25. ViewPort* view_port;
  26. Storage* storage;
  27. NotificationApp* notification;
  28. } nRF24Batch;