-
Notifications
You must be signed in to change notification settings - Fork 0
/
newdebug.h
71 lines (49 loc) · 1.49 KB
/
newdebug.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef NEWDEBUG_H
#define NEWDEBUG_H
#include <QDialog>
#include "classes/globalvars.h"
namespace Ui {
class NewDebug;
}
class NewDebug : public QDialog
{
Q_OBJECT
public:
explicit NewDebug(QWidget *parent = nullptr);
~NewDebug();
signals:
void tx_ClosingWindow_DebugWin();
void tx_generate_ThisGUI(GUI_WIN gui);
private slots:
void on_pb_Reset_clicked();
void on_pb_StartConversion_clicked();
uint32_t on_pb_ReadConversion_clicked();
void on_pb_ADC_Number_clicked();
void on_pb_setClock_clicked();
void on_pb_samplingRate_clicked();
void on_pb_writeRegister_1_clicked();
void on_pb_writeRegister_2_clicked();
void on_pb_writeRegister_3_clicked();
void on_pb_writeRegister_4_clicked();
void on_pb_Timer_clicked();
void on_timer_autoManualClicked();
void on_timer_configRegister_Elapsed();
void on_pb_readRegister_clicked();
void on_pb_readRegister_2_clicked();
void on_pb_read_ALLChannels_clicked();
void on_pb_ConfigAll_clicked();
void on_pb_read_Automatic_clicked();
void on_pb_Close_clicked();
private:
Ui::NewDebug *ui;
uint32_t *localFPGAaddr;
int writeRegister(uint8_t addr, uint8_t val);
uint32_t readRegister(uint8_t addr);
float getCalculatedFromRawValue(uint32_t raw);
bool autoMode_isEnable = false;
void readData();
void showValueofPCB_Channels(int idx, float val);
QTimer *timer_autoManualClick;
QTimer *timer_configRegister;
};
#endif // NEWDEBUG_H