mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-19 03:11:52 +03:00
21ac37a6f6
* [Fl-2152] New PIN Lock, part 1 * Fix errors & leaks, renaming * Add support to f6 * Fix error, remove duplicate code * Fix drawing corners of Lock Popup * FuriHal: insomnia if usb connected * Applications: cleanup timers use Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
44 lines
1.0 KiB
C
44 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <gui/view.h>
|
|
#include "desktop_events.h"
|
|
|
|
typedef struct DesktopDebugView DesktopDebugView;
|
|
|
|
typedef void (*DesktopDebugViewCallback)(DesktopEvent event, void* context);
|
|
|
|
// Debug info
|
|
typedef enum {
|
|
DesktopViewStatsFw,
|
|
DesktopViewStatsBoot,
|
|
DesktopViewStatsMeta,
|
|
DesktopViewStatsTotalCount,
|
|
} DesktopViewStatsScreens;
|
|
|
|
struct DesktopDebugView {
|
|
View* view;
|
|
DesktopDebugViewCallback callback;
|
|
void* context;
|
|
};
|
|
|
|
typedef struct {
|
|
uint32_t icounter;
|
|
uint32_t butthurt;
|
|
uint64_t timestamp;
|
|
DesktopViewStatsScreens screen;
|
|
} DesktopDebugViewModel;
|
|
|
|
void desktop_debug_set_callback(
|
|
DesktopDebugView* debug_view,
|
|
DesktopDebugViewCallback callback,
|
|
void* context);
|
|
|
|
View* desktop_debug_get_view(DesktopDebugView* debug_view);
|
|
|
|
DesktopDebugView* desktop_debug_alloc();
|
|
void desktop_debug_free(DesktopDebugView* debug_view);
|
|
|
|
void desktop_debug_get_dolphin_data(DesktopDebugView* debug_view);
|
|
void desktop_debug_reset_screen_idx(DesktopDebugView* debug_view);
|