CuteHMI - Modbus (CuteHMI.Modbus.2)
cutehmi::modbus::internal::CoilPolling Class Reference

#include <cutehmi/modbus/internal/CoilPolling.hpp>

Inheritance diagram for cutehmi::modbus::internal::CoilPolling:
cutehmi::modbus::internal::DataContainerPolling< CoilPolling, Coil > cutehmi::modbus::internal::IterableTasks cutehmi::NonCopyable

Public Member Functions

 CoilPolling (AbstractDevice *device, QUuid *requestId)
 
const DataContainercontainer () const
 
const DatadataAt (quint16 address) const
 
void requestReadData (quint16 address, quint16 amount, QUuid *requestId)
 
int maxRead () const
 
- Public Member Functions inherited from cutehmi::modbus::internal::DataContainerPolling< CoilPolling, Coil >
 DataContainerPolling (AbstractDevice *device, QUuid *requestId)
 
AbstractDevicedevice () const
 
bool runNext () override
 Run next task. More...
 
void reset () override
 Reset tasks iterator. More...
 
CoilPollingderived ()
 
const CoilPollingderived () const
 
- Public Member Functions inherited from cutehmi::modbus::internal::IterableTasks
virtual ~IterableTasks ()=default
 
const CoilDataContainercoilData (const AbstractDevice *device) const
 
const DiscreteInputDataContainerdiscreteInputData (const AbstractDevice *device) const
 
const HoldingRegisterDataContainerholdingRegisterData (const AbstractDevice *device) const
 
const InputRegisterDataContainerinputRegisterData (const AbstractDevice *device) const
 

Additional Inherited Members

- Public Types inherited from cutehmi::modbus::internal::DataContainerPolling< CoilPolling, Coil >
typedef Coil Data
 
typedef RegisterTraits< Data >::Container DataContainer
 
- Public Types inherited from cutehmi::modbus::internal::IterableTasks
typedef RegisterTraits< Coil >::Container CoilDataContainer
 
typedef RegisterTraits< DiscreteInput >::Container DiscreteInputDataContainer
 
typedef RegisterTraits< HoldingRegister >::Container HoldingRegisterDataContainer
 
typedef RegisterTraits< InputRegister >::Container InputRegisterDataContainer
 
- Protected Member Functions inherited from cutehmi::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (NonCopyable &&other)=default
 
 ~NonCopyable ()=default
 
NonCopyableoperator= (NonCopyable &&other)=default
 

Constructor & Destructor Documentation

◆ CoilPolling()

cutehmi::modbus::internal::CoilPolling::CoilPolling ( AbstractDevice device,
QUuid requestId 
)

Member Function Documentation

◆ container()

const CoilPolling::DataContainer & cutehmi::modbus::internal::CoilPolling::container ( ) const

◆ dataAt()

const CoilPolling::Data * cutehmi::modbus::internal::CoilPolling::dataAt ( quint16  address) const

◆ maxRead()

int cutehmi::modbus::internal::CoilPolling::maxRead ( ) const

◆ requestReadData()

void cutehmi::modbus::internal::CoilPolling::requestReadData ( quint16  address,
quint16  amount,
QUuid requestId 
)