fbp.h 717 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include <furi.h>
  3. #include <furi_hal_bt.h>
  4. #include <furi_hal_bt_serial.h>
  5. #include <bt/bt_service/bt.h>
  6. #include <gui/gui.h>
  7. #include <gui/view_dispatcher.h>
  8. #include <gui/modules/submenu.h>
  9. #include "tcode.h"
  10. #include "views/internal.h"
  11. #include "views/gpio_simple_motor.h"
  12. #define TAG "Flipper BP"
  13. typedef struct FBP FBP;
  14. struct FBP {
  15. Submenu* submenu;
  16. ViewDispatcher* view_dispatcher;
  17. Gui* gui;
  18. Bt* bt;
  19. bool bt_connected;
  20. FuriMutex* app_mutex;
  21. FuriMessageQueue* event_queue;
  22. FlipperVibrator* flipper_vibrator;
  23. GPIOSimpleMotor* gpio_simple_motor;
  24. };
  25. typedef enum {
  26. FBPAppViewSubmenu,
  27. FBPAppViewInternal,
  28. FBPAppViewGPIOSimpleMotor,
  29. } FBPAppView;