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

Classes

class  AbstractClientBackend
 Abstract client backend. More...
 
class  AbstractDeviceBackend
 Abstract device backend. More...
 
class  AbstractServerBackend
 Abstract server backend. More...
 
class  Coil
 Internal coil. More...
 
class  CoilPolling
 
class  Config
 
class  DataContainer
 Data container. More...
 
class  DataContainerPolling
 
class  DiscreteInput
 Internal discrete input. More...
 
class  DiscreteInputPolling
 
class  DummyClientBackend
 
class  DummyClientConfig
 
class  HoldingRegister
 Internal holding register. More...
 
class  HoldingRegisterPolling
 
class  InputRegister
 Internal input register. More...
 
class  InputRegisterPolling
 
class  IterableTasks
 
class  PollingIterator
 
class  QMLPlugin
 
class  QtClientBackend
 
class  QtRTUClientBackend
 Modbus RTU client backend based on Qt Serial Bus. More...
 
class  QtRTUServer
 Qt SerialBus based TCP server. More...
 
class  QtRTUServerBackend
 TCP server backend. More...
 
class  QtServerBackend
 
class  QtServerMixin
 
class  QtTCPClientBackend
 Modbus TCP client backend based on Qt Serial Bus. More...
 
class  QtTCPServer
 Qt SerialBus based TCP server. More...
 
class  QtTCPServerBackend
 TCP server backend. More...
 
class  RegisterControllerMixin
 
struct  RegisterControllerTraits
 
struct  RegisterControllerTraits< Register16Controller >
 
struct  RegisterControllerTraits< Register1Controller >
 
struct  RegisterTraits
 
struct  RegisterTraits< Coil >
 
struct  RegisterTraits< DiscreteInput >
 
struct  RegisterTraits< HoldingRegister >
 
struct  RegisterTraits< InputRegister >
 
class  RTUClientConfig
 
class  RTUServerConfig
 
class  TCPClientConfig
 
class  TCPServerConfig
 

Functions

template<typename T >
toBigEndian (T src)
 
template<typename T >
fromBigEndian (T src)
 
template<typename T >
toLittleEndian (T src)
 
template<typename T >
fromLittleEndian (T src)
 
quint16 CUTEHMI_MODBUS_PRIVATE intToUint16 (int value)
 Store integer as 16 bit unsigned integer. More...
 
quint16 CUTEHMI_MODBUS_PRIVATE int16ToUint16 (qint16 value)
 Store 16 bit integer as 16 bit unsigned integer. More...
 
qint16 CUTEHMI_MODBUS_PRIVATE int16FromUint16 (quint16 value)
 Restore 16 bit integer from 16 bit unsigned integer. More...
 

Function Documentation

◆ fromBigEndian()

template<typename T >
T cutehmi::modbus::internal::fromBigEndian ( src)

◆ fromLittleEndian()

template<typename T >
T cutehmi::modbus::internal::fromLittleEndian ( src)

◆ int16FromUint16()

qint16 cutehmi::modbus::internal::int16FromUint16 ( quint16  value)

Restore 16 bit integer from 16 bit unsigned integer.

Parameters
valuevalue to be restored.
Returns
value converted to 16 bit integer.
Remarks
It is assumed that value uses two's complement convention (one's complement machines are probably non-existent).

◆ int16ToUint16()

quint16 cutehmi::modbus::internal::int16ToUint16 ( qint16  value)

Store 16 bit integer as 16 bit unsigned integer.

Parameters
valuevalue to be stored.
Returns
value converted to 16 bit unsigned integer.
Remarks
It is assumed that value uses two's complement convention (one's complement machines are probably non-existent).

◆ intToUint16()

quint16 cutehmi::modbus::internal::intToUint16 ( int  value)

Store integer as 16 bit unsigned integer.

This is convenient function that casts int to 16 bit integer and then stores it as 16 bit unsigned integer.

Parameters
valuevalue to be stored. Must be within 16 bit interger range (int is guaranteed to be at least 16 bits wide by the standard).
Returns
value converted to 16 bit unsigned integer.
Remarks
It is assumed that value uses two's complement convention (one's complement machines are probably non-existent).

◆ toBigEndian()

template<typename T >
T cutehmi::modbus::internal::toBigEndian ( src)

◆ toLittleEndian()

template<typename T >
T cutehmi::modbus::internal::toLittleEndian ( src)