You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|
|
|