nrf24scan.h 554 B

123456789101112131415161718192021222324252627282930313233
  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. typedef enum {
  9. EventTypeTick,
  10. EventTypeKey,
  11. } EventType;
  12. typedef struct {
  13. EventType type;
  14. InputEvent input;
  15. } PluginEvent;
  16. typedef struct {
  17. int x;
  18. int y;
  19. } PluginState;
  20. typedef struct {
  21. Gui* gui;
  22. FuriMessageQueue* event_queue;
  23. PluginState* plugin_state;
  24. ViewPort* view_port;
  25. Storage* storage;
  26. uint8_t* log_arr;
  27. } Nrf24Scan;