nrf24scan.h 730 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. struct FOUND {
  22. uint8_t addr_size;
  23. uint8_t addr[5];
  24. uint16_t total;
  25. };
  26. typedef struct {
  27. Gui* gui;
  28. FuriMessageQueue* event_queue;
  29. PluginState* plugin_state;
  30. ViewPort* view_port;
  31. Storage* storage;
  32. NotificationApp* notification;
  33. uint8_t* log_arr;
  34. struct FOUND *found;
  35. } Nrf24Scan;