20 lines
488 B
20 lines
488 B
4 years ago
|
#ifndef SETTINGSERIALPARAMETERS_H
|
||
|
#define SETTINGSERIALPARAMETERS_H
|
||
|
#include <QSerialPort>
|
||
|
|
||
|
class SettingSerialParameters
|
||
|
{
|
||
|
public:
|
||
|
SettingSerialParameters();
|
||
|
struct Settings {
|
||
|
int parity = QSerialPort::EvenParity;
|
||
|
int baud = QSerialPort::Baud19200;
|
||
|
int dataBits = QSerialPort::Data8;
|
||
|
int stopBits = QSerialPort::OneStop;
|
||
|
int responseTime = 1000;
|
||
|
int numberOfRetries = 3;
|
||
|
}modbusSetting;
|
||
|
};
|
||
|
|
||
|
#endif // SETTINGSERIALPARAMETERS_H
|