QKnx2ByteUnsignedValue Class

The QKnx2ByteUnsignedValue class is a datapoint type with a 2-byte unsigned value. 更多...

头: #include <QKnx2ByteUnsignedValue>
qmake: QT += knx
继承: QKnxFixedSizeDatapointType

公共函数

QKnx2ByteUnsignedValue (quint32 value )
QKnx2ByteUnsignedValue ()
bool setValue (quint32 value )
quint32 value () const

重实现公共函数

virtual bool isValid () const override

保护函数

QKnx2ByteUnsignedValue (int subType , quint32 value )

详细描述

This is a fixed size datapoint type with the length of 2 bytes.

It is a base class for the following datapoint types:

  • QKnxBrightness - Brightness in LUX
  • QKnxLengthMilliMeter - Length in millimeters
  • QKnxPropDataType - Identifier Interface Object Property data type (no unit)
  • QKnxTimePeriod10Msec - Time in multiples of 10 milliseconds. Not allowed for runtime communication. This datapoint type shall only be used for parameters and diagnostic data or if specified as such in a functional block specification.
  • QKnxTimePeriod100Msec - Time in multiples of 100 milliseconds. Not allowed for runtime communication.
  • QKnxTimePeriodHrs - Time in hours
  • QKnxTimePeriodMin - Time in minutes. Not allowed for runtime communication.
  • QKnxTimePeriodMsec - Time in milliseconds
  • QKnxTimePeriodSec - Time in seconds
  • QKnxUEICurrentMilliA - Current in milliampere. The minimum value is 0 , which means that no bus poser supply functionality is available.
  • QKnxValue2Ucount - Pulses

Integer values from 0 to 65 535 can be encoded in this datapoint type.

另请参阅 QKnxDatapointType and Qt KNX Datapoint Type Classes .

成员函数文档编制

[protected] QKnx2ByteUnsignedValue:: QKnx2ByteUnsignedValue ( int subType , quint32 value )

Creates a fixed size datapoint type with the subtype subType and value value .

QKnx2ByteUnsignedValue:: QKnx2ByteUnsignedValue ( quint32 value )

Creates a fixed size datapoint type with the value value .

QKnx2ByteUnsignedValue:: QKnx2ByteUnsignedValue ()

Creates a fixed size datapoint type with the value 0 .

[override virtual] bool QKnx2ByteUnsignedValue:: isValid () const

重实现: QKnxDatapointType::isValid () const.

bool QKnx2ByteUnsignedValue:: setValue ( quint32 value )

Sets the value of the datapoint type to value .

返回 true if the value was set; otherwise returns false .

另请参阅 value ().

quint32 QKnx2ByteUnsignedValue:: value () const

Returns the value stored in the datapoint type.

另请参阅 setValue ().