19 lines
488 B
19 lines
488 B
#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
|
|
|