mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-22 10:43:11 +00:00
0af6c9882e
* api-hal-bt: separate bt init to core init and app start * bt: add continuous TX and RX tests * bt: finish rx test on Back button click * api-hal-bt: check core 2 started, same f4 and f5 implementation * bt: refactoring, move hopping test logic to main thread Co-authored-by: あく <alleteam@gmail.com>
48 lines
1 KiB
C
48 lines
1 KiB
C
#pragma once
|
|
|
|
#include "bt_i.h"
|
|
#include "bt_types.h"
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <gui/canvas.h>
|
|
#include <furi.h>
|
|
#include <gui/view_dispatcher.h>
|
|
#include <gui/view.h>
|
|
|
|
typedef enum {
|
|
BtViewTestToneTx,
|
|
BtViewTestPacketTx,
|
|
BtViewTestToneRx,
|
|
BtViewStartApp,
|
|
} BtView;
|
|
|
|
typedef struct {
|
|
BtStateType type;
|
|
BtTestChannel channel;
|
|
BtTestPower power;
|
|
} BtViewTestToneTxModel;
|
|
|
|
typedef struct {
|
|
BtStateType type;
|
|
BtTestChannel channel;
|
|
BtTestDataRate datarate;
|
|
} BtViewTestPacketTxModel;
|
|
|
|
typedef struct {
|
|
BtTestChannel channel;
|
|
} BtViewTestRxModel;
|
|
|
|
void bt_view_test_tone_tx_draw(Canvas* canvas, void* model);
|
|
|
|
bool bt_view_test_tone_tx_input(InputEvent* event, void* context);
|
|
|
|
void bt_view_test_packet_tx_draw(Canvas* canvas, void* model);
|
|
|
|
bool bt_view_test_packet_tx_input(InputEvent* event, void* context);
|
|
|
|
void bt_view_test_tone_rx_draw(Canvas* canvas, void* model);
|
|
|
|
bool bt_view_test_tone_rx_input(InputEvent* event, void* context);
|
|
|
|
void bt_view_app_draw(Canvas* canvas, void* model);
|