1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_REGISTER1CONTROLLER_HPP
2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_REGISTER1CONTROLLER_HPP
4 #include "internal/common.hpp"
5 #include "internal/RegisterControllerMixin.hpp"
6 #include "AbstractDevice.hpp"
7 #include "Register1.hpp"
8 #include "AbstractRegisterController.hpp"
11 #include <QBasicTimer>
29 static constexpr
bool INITIAL_VALUE =
false;
31 Q_PROPERTY(
bool value READ value WRITE setValue NOTIFY valueChanged)
39 void setValue(
bool value);
56 virtual Register1 * registerAt(quint16 address)
const = 0;
62 virtual void requestWriteRegister(quint16 address,
bool value,
QUuid * requestId)
const = 0;
66 quint16 bytes()
const override;
68 void onDeviceDestroyed()
override;
78 void updateValue(
bool value);
82 void requestWrite(
bool value);
84 bool verifyRegisterValue()
const;
89 bool postponedWritePending;
98 postponedWritePending(false),
99 adjustingValue(false),