flipbip39.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #include <furi.h>
  3. #include <furi_hal.h>
  4. #include <gui/gui.h>
  5. #include <input/input.h>
  6. #include <stdlib.h>
  7. #include <notification/notification_messages.h>
  8. #include <gui/view_dispatcher.h>
  9. #include <gui/modules/submenu.h>
  10. #include <gui/scene_manager.h>
  11. #include <gui/modules/variable_item_list.h>
  12. #include "scenes/flipbip39_scene.h"
  13. #include "views/flipbip39_startscreen.h"
  14. #include "views/flipbip39_scene_1.h"
  15. #include "views/flipbip39_scene_2.h"
  16. typedef struct {
  17. Gui* gui;
  18. NotificationApp* notification;
  19. ViewDispatcher* view_dispatcher;
  20. Submenu* submenu;
  21. SceneManager* scene_manager;
  22. VariableItemList* variable_item_list;
  23. FlipBip39Startscreen* flipbip39_startscreen;
  24. FlipBip39Scene1* flipbip39_scene_1;
  25. FlipBip39Scene2* flipbip39_scene_2;
  26. int haptic;
  27. int speaker;
  28. int led;
  29. } FlipBip39;
  30. typedef enum {
  31. FlipBip39ViewIdStartscreen,
  32. FlipBip39ViewIdMenu,
  33. FlipBip39ViewIdScene1,
  34. FlipBip39ViewIdScene2,
  35. FlipBip39ViewIdSettings,
  36. } FlipBip39ViewId;
  37. typedef enum {
  38. FlipBip39HapticOff,
  39. FlipBip39HapticOn,
  40. } FlipBip39HapticState;
  41. typedef enum {
  42. FlipBip39SpeakerOff,
  43. FlipBip39SpeakerOn,
  44. } FlipBip39SpeakerState;
  45. typedef enum {
  46. FlipBip39LedOff,
  47. FlipBip39LedOn,
  48. } FlipBip39LedState;