nrf24scan.h 734 B

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