[FL-580] Prepare BLE for certification (#376)
* 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>
This commit is contained in:
48
applications/bt/bt_views.h
Normal file
48
applications/bt/bt_views.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#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);
|
Reference in New Issue
Block a user