1#ifndef H_EXTENSIONS_CUTEHMI_MODBUS_4_INCLUDE_CUTEHMI_MODBUS_REGISTER1CONTROLLER_HPP
2#define H_EXTENSIONS_CUTEHMI_MODBUS_4_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"
26 QML_UNCREATABLE(
"Register1Controller is an abstract class")
32 static constexpr bool INITIAL_VALUE =
false;
34 Q_PROPERTY(
bool value READ value WRITE setValue NOTIFY valueChanged)
42 void setValue(
bool value);
69 quint16 bytes()
const override;
71 void onDeviceDestroyed()
override;
81 void updateValue(
bool value);
85 void requestWrite(
bool value);
87 bool verifyRegisterValue()
const;
92 bool postponedWritePending;
100 value(INITIAL_VALUE),
101 postponedWritePending(false),
102 adjustingValue(false),
Function
Definition: AbstractDevice.hpp:56
Abstract register controller.
Definition: AbstractRegisterController.hpp:20
Register controller for 1 bit registers.
Definition: Register1Controller.hpp:23
virtual AbstractDevice::Function writeRegisterFunction() const =0
virtual AbstractDevice::Function readRegistersFunction() const =0
virtual Register1 * registerAt(quint16 address) const =0
virtual void requestWriteRegister(quint16 address, bool value, QUuid *requestId) const =0
Cached properties of 1 bit register.
Definition: Register1.hpp:15
Definition: RegisterControllerMixin.hpp:18