1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_RTUCLIENTCONFIG_HPP 
    2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_RTUCLIENTCONFIG_HPP 
    8 #include <QModbusDevice> 
    9 #include <QReadWriteLock> 
   10 #include <QSerialPort> 
   22         static constexpr 
int MIN_SLAVE_ADDRESS = 1; 
 
   23         static constexpr 
int MAX_SLAVE_ADDRESS = 247; 
 
   25         static constexpr QSerialPort::Parity INITIAL_PARITY = QSerialPort::NoParity;
 
   26         static constexpr QSerialPort::BaudRate INITIAL_BAUD_RATE = QSerialPort::Baud19200;
 
   27         static constexpr QSerialPort::DataBits INITIAL_DATA_BITS = QSerialPort::Data8;
 
   28         static constexpr QSerialPort::StopBits INITIAL_STOP_BITS = QSerialPort::OneStop;
 
   29         static constexpr 
int INITIAL_SLAVE_ADDRESS = MIN_SLAVE_ADDRESS;
 
   35         void setPort(
const QString & port);
 
   37         QSerialPort::Parity parity() 
const;
 
   39         void setParity(QSerialPort::Parity parity);
 
   41         QSerialPort::BaudRate baudRate() 
const;
 
   43         void setBaudRate(QSerialPort::BaudRate baudRate);
 
   45         QSerialPort::DataBits dataBits() 
const;
 
   47         void setDataBits(QSerialPort::DataBits dataBits);
 
   49         QSerialPort::StopBits stopBits() 
const;
 
   51         void setStopBits(QSerialPort::StopBits stopBits);
 
   53         int slaveAddress() 
const;
 
   55         void setSlaveAddress(
int slaveAddress);
 
   61             QSerialPort::Parity parity = INITIAL_PARITY;
 
   62             QSerialPort::BaudRate baudRate = INITIAL_BAUD_RATE;
 
   63             QSerialPort::DataBits dataBits = INITIAL_DATA_BITS;
 
   64             QSerialPort::StopBits stopBits = INITIAL_STOP_BITS;
 
   65             int slaveAddress = INITIAL_SLAVE_ADDRESS;