forked from paulh002/sdrberry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui_rx.h
43 lines (39 loc) · 862 Bytes
/
gui_rx.h
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
35
36
37
38
39
40
41
42
43
#pragma once
#include "AudioInput.h"
#include "lvgl/lvgl.h"
#include "Settings.h"
#include "sdrberry.h"
#include "vfo.h"
#include "gui_vfo.h"
extern const int screenWidth;
extern const int screenHeight;
extern const int bottomHeight;
extern const int topHeight;
extern const int tunerHeight;
class gui_rx
{
public:
void gui_rx_init(lv_obj_t* o_tab, lv_coord_t w);
int getbuttons()
{
return ibuttons;
}
lv_obj_t* get_button_obj(int i)
{
if (i >= ibuttons)
return nullptr;
return rx_button[i];
}
void add_sample_rate(int samplerate);
void set_gui_mode(int mode);
void set_sample_rate(int rate);
private:
int mode;
lv_obj_t* mic_slider_label, *mic_slider, *drv_slider, *drv_slider_label;
lv_style_t style_btn;
lv_obj_t *rx_button[10];
int ibuttons;
vector<int> sample_rates;
lv_obj_t* d_samplerate;
};
extern gui_rx Gui_rx;