CuteHMI - Modbus (CuteHMI.Modbus.2)
CoilPolling.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_COILPOLLING_HPP
2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_COILPOLLING_HPP
3 
4 #include "common.hpp"
5 //#include "IterableTasks.hpp"
6 #include "DataContainerPolling.hpp"
7 
8 class QUuid;
9 
10 namespace cutehmi {
11 namespace modbus {
12 namespace internal {
13 
14 class CUTEHMI_MODBUS_PRIVATE CoilPolling:
15  public DataContainerPolling<CoilPolling, Coil>
16 {
18 
19  public:
20  CoilPolling(AbstractDevice * device, QUuid * requestId);
21 
22  const DataContainer & container() const;
23 
24  const Data * dataAt(quint16 address) const;
25 
26  void requestReadData(quint16 address, quint16 amount, QUuid * requestId);
27 
28  int maxRead() const;
29 };
30 
31 }
32 }
33 }
34 
35 #endif
36 
37 //(c)C: Copyright © 2019, Michał Policht <michal@policht.pl>. All rights reserved.
38 //(c)C: This file is a part of CuteHMI.
39 //(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.
40 //(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.
41 //(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::internal::CoilPolling
Definition: CoilPolling.hpp:14
QUuid
cutehmi::modbus::internal::DataContainerPolling
Definition: DataContainerPolling.hpp:13
cutehmi::modbus::AbstractDevice
Abstract Modbus device.
Definition: AbstractDevice.hpp:33
cutehmi::modbus::internal::DataContainerPolling< CoilPolling, Coil >::DataContainer
RegisterTraits< Data >::Container DataContainer
Definition: DataContainerPolling.hpp:18
cutehmi
cutehmi::modbus::internal::Coil
Internal coil.
Definition: Coil.hpp:15
std::internal
T internal(T... args)