CuteHMI - Modbus (CuteHMI.Modbus.4)
cutehmi::modbus::internal::DiscreteInputPolling Class Reference

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

Inheritance diagram for cutehmi::modbus::internal::DiscreteInputPolling:
cutehmi::modbus::internal::DataContainerPolling< DiscreteInputPolling, DiscreteInput > cutehmi::modbus::internal::IterableTasks cutehmi::NonCopyable

Public Member Functions

 DiscreteInputPolling (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< DiscreteInputPolling, DiscreteInput >
 DataContainerPolling (AbstractDevice *device, QUuid *requestId)
 
AbstractDevicedevice () const
 
bool runNext () override
 Run next task. More...
 
void reset () override
 Reset tasks iterator. More...
 
DiscreteInputPollingderived ()
 
const DiscreteInputPollingderived () const
 
- Public Member Functions inherited from cutehmi::modbus::internal::IterableTasks
virtual ~IterableTasks ()=default
 
virtual bool runNext ()=0
 Run next task. More...
 
virtual void reset ()=0
 Reset tasks iterator. More...
 
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< DiscreteInputPolling, DiscreteInput >
typedef DiscreteInput 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

◆ DiscreteInputPolling()

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

Member Function Documentation

◆ container()

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

◆ dataAt()

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

◆ maxRead()

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

◆ requestReadData()

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