QKnx2ByteUnsignedValue Class
The QKnx2ByteUnsignedValue class is a datapoint type with a 2-byte unsigned value. More...
Header: | #include <QKnx2ByteUnsignedValue> |
qmake: | QT += knx |
Inherits: | QKnxFixedSizeDatapointType |
Public Functions
QKnx2ByteUnsignedValue(quint32 value) | |
QKnx2ByteUnsignedValue() | |
bool | setValue(quint32 value) |
quint32 | value() const |
Reimplemented Public Functions
virtual bool | isValid() const override |
Protected Functions
QKnx2ByteUnsignedValue(int subType, quint32 value) |
Detailed Description
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 LUXQKnxLengthMilliMeter
- Length in millimetersQKnxPropDataType
- 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 hoursQKnxTimePeriodMin
- Time in minutes. Not allowed for runtime communication.QKnxTimePeriodMsec
- Time in millisecondsQKnxTimePeriodSec
- Time in secondsQKnxUEICurrentMilliA
- Current in milliampere. The minimum value is0
, 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.
See also QKnxDatapointType and Qt KNX Datapoint Type Classes.
Member Function Documentation
[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
Reimplements: QKnxDatapointType::isValid() const.
bool QKnx2ByteUnsignedValue::setValue(quint32 value)
Sets the value of the datapoint type to value.
Returns true
if the value was set; otherwise returns false
.
See also value().
quint32 QKnx2ByteUnsignedValue::value() const
Returns the value stored in the datapoint type.
See also setValue().