-
Notifications
You must be signed in to change notification settings - Fork 7
/
csetting.h
53 lines (47 loc) · 976 Bytes
/
csetting.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
#ifndef CSETTING_H
#define CSETTING_H
#include <QString>
///
/// \brief class for connection settins used by iec104driver.h
///
class CSetting
{
public:
QString IP;
///
/// \brief Port
/// default is 2404
quint16 Port;
///
/// \brief t0
/// time in seconds
// quint16 t0;
///
/// \brief t1
/// таймаут контроля связи в сек
quint16 t1;
///
/// \brief t2
///time in seconds
// quint16 t2;
///
/// \brief t3
/// таймаут отправки тестовых пакетов в сек
quint16 t3;
///
/// \brief k
/// count
quint16 k;
///
/// \brief w
/// count
quint16 w;
quint16 asdu;
bool autoCreateTags;
bool SendGIOnStart;
bool SendTCOnStart;
bool autoStart;
CSetting();
CSetting(QString _ip, quint16 _asdu=1, quint16 _port=2404, bool autoCreate=false, bool _autoStart=false);
};
#endif // CSETTING_H