mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-20 11:51:48 +03:00
f56c94922d
* Apps: DAP Link * API: furi_hal_console_init Co-authored-by: あく <alleteam@gmail.com>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
#pragma once
|
|
#include <gui/view.h>
|
|
|
|
typedef struct DapMainView DapMainView;
|
|
|
|
typedef void (*DapMainViewButtonCallback)(void* context);
|
|
|
|
typedef enum {
|
|
DapMainViewVersionUnknown,
|
|
DapMainViewVersionV1,
|
|
DapMainViewVersionV2,
|
|
} DapMainViewVersion;
|
|
|
|
typedef enum {
|
|
DapMainViewModeDisconnected,
|
|
DapMainViewModeSWD,
|
|
DapMainViewModeJTAG,
|
|
} DapMainViewMode;
|
|
|
|
DapMainView* dap_main_view_alloc();
|
|
|
|
void dap_main_view_free(DapMainView* dap_main_view);
|
|
|
|
View* dap_main_view_get_view(DapMainView* dap_main_view);
|
|
|
|
void dap_main_view_set_left_callback(
|
|
DapMainView* dap_main_view,
|
|
DapMainViewButtonCallback callback,
|
|
void* context);
|
|
|
|
void dap_main_view_set_mode(DapMainView* dap_main_view, DapMainViewMode mode);
|
|
|
|
void dap_main_view_set_version(DapMainView* dap_main_view, DapMainViewVersion version);
|
|
|
|
void dap_main_view_set_dap(DapMainView* dap_main_view, bool active);
|
|
|
|
void dap_main_view_set_tx(DapMainView* dap_main_view, bool active);
|
|
|
|
void dap_main_view_set_rx(DapMainView* dap_main_view, bool active);
|
|
|
|
void dap_main_view_set_usb_connected(DapMainView* dap_main_view, bool connected);
|
|
|
|
void dap_main_view_set_baudrate(DapMainView* dap_main_view, uint32_t baudrate);
|
|
|
|
void dap_main_view_update(DapMainView* dap_main_view); |