forked from nanovna-v2/NanoVNA2-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.hpp
34 lines (24 loc) · 744 Bytes
/
ui.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <stdint.h>
#include "uihw.hpp"
// only process one event
void ui_process(UIHW::UIEvent evt);
void uiEnableProcessing();
void uiDisableProcessing();
#define TOUCH_THRESHOLD 2000
#define NUMERIC_INPUT_DIGITS 10
void touch_cal_exec(void);
void touch_draw_test(void);
void touch_start_watchdog(void);
bool touch_position(int *x, int *y);
void ui_enter_dfu(void);
void ui_mode_normal(void);
void ui_mode_menu(void);
void ui_mode_usb(void);
void draw_numeric_input(const char *buf);
void draw_menu();
void ui_cal_collected();
// update marker position if marker tracking is enabled
void ui_marker_track();
void show_dmesg();
void show_message(const char* title, const char* message, int fg = 0xffff, int bg = 0x0000);