CuteHMI - Modbus (CuteHMI.Modbus.2)
InputRegisterController.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INPUTREGISTERCONTROLLER_HPP
2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INPUTREGISTERCONTROLLER_HPP
3 
4 #include "internal/common.hpp"
5 #include "Register16Controller.hpp"
6 
7 #include <QObject>
8 
9 namespace cutehmi {
10 namespace modbus {
11 
12 class CUTEHMI_MODBUS_API InputRegisterController:
14 {
15  Q_OBJECT
16  public:
17  InputRegisterController(QObject * parent = nullptr);
18 
19  protected:
20  Register16 * registerAt(quint16 address) const override;
21 
22  void requestReadRegisters(quint16 address, quint16 amount, QUuid * requestId) const override;
23 
24  void requestWriteRegister(quint16 address, quint16 value, QUuid * requestId) const override;
25 
26  AbstractDevice::Function readRegistersFunction() const override;
27 
28  AbstractDevice::Function writeRegisterFunction() const override;
29 };
30 
31 }
32 }
33 
34 #endif
35 
36 //(c)C: Copyright © 2019, Michał Policht <michal@policht.pl>. All rights reserved.
37 //(c)C: This file is a part of CuteHMI.
38 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
39 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
40 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi::modbus::Register16Controller
Register controller for 16 bit registers.
Definition: Register16Controller.hpp:17
cutehmi::modbus::InputRegisterController
Definition: InputRegisterController.hpp:12
QUuid
QObject
cutehmi
cutehmi::modbus::AbstractDevice::Function
Function
Definition: AbstractDevice.hpp:51
cutehmi::modbus::Register16
Cached properties of 16 bit register.
Definition: Register16.hpp:14