bt_views.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #include "bt_i.h"
  3. #include "bt_types.h"
  4. #include <stdint.h>
  5. #include <stdbool.h>
  6. #include <gui/canvas.h>
  7. #include <furi.h>
  8. #include <gui/view_dispatcher.h>
  9. #include <gui/view.h>
  10. typedef enum {
  11. BtViewTestToneTx,
  12. BtViewTestPacketTx,
  13. BtViewTestToneRx,
  14. BtViewStartApp,
  15. } BtView;
  16. typedef struct {
  17. BtStateType type;
  18. BtTestChannel channel;
  19. BtTestPower power;
  20. } BtViewTestToneTxModel;
  21. typedef struct {
  22. BtStateType type;
  23. BtTestChannel channel;
  24. BtTestDataRate datarate;
  25. } BtViewTestPacketTxModel;
  26. typedef struct {
  27. BtTestChannel channel;
  28. } BtViewTestRxModel;
  29. void bt_view_test_tone_tx_draw(Canvas* canvas, void* model);
  30. bool bt_view_test_tone_tx_input(InputEvent* event, void* context);
  31. void bt_view_test_packet_tx_draw(Canvas* canvas, void* model);
  32. bool bt_view_test_packet_tx_input(InputEvent* event, void* context);
  33. void bt_view_test_tone_rx_draw(Canvas* canvas, void* model);
  34. bool bt_view_test_tone_rx_input(InputEvent* event, void* context);
  35. void bt_view_app_draw(Canvas* canvas, void* model);