The QKnx1Byte class is a fixed size datapoint type with the length of 1 byte. 更多...
头: | #include <QKnx1Byte> |
qmake: | QT += knx |
继承: | QKnxFixedSizeDatapointType |
继承者: |
15 typesQKnxActuatorConnectType , QKnxAlarmClassType , QKnxApplicationArea , QKnxBeaufortWindForceScale , QKnxBuildingMode , QKnxCloudCover , QKnxErrorClassHvac , QKnxErrorClassSystem , QKnxLightApplicationMode , QKnxOccupyMode , QKnxPriority , QKnxPsuMode , QKnxScloMode , QKnxSensorSelect ,和 QKnxTimeDelay |
QKnx1Byte (quint8 value ) | |
QKnx1Byte () | |
bool | setValue (quint8 value ) |
quint8 | value () const |
virtual bool | isValid () const override |
QKnx1Byte (int subType , quint8 value ) |
This datapoint type encodes an absolute value between
0
and
255
.
另请参阅 QKnxDatapointType and Qt KNX Datapoint Type Classes .
[protected]
QKnx1Byte::
QKnx1Byte
(
int
subType
,
quint8
value
)
Creates a fixed size datapoint with the subtype subType and the value value .
Creates a fixed size datapoint type with the value value .
Creates a fixed size datapoint type with the value set to
0
.
[override virtual]
bool
QKnx1Byte::
isValid
() const
重实现: QKnxDatapointType::isValid () const.
Sets the byte stored in the datapoint type to value .
返回
true
if the byte was set; otherwise returns
false
.
另请参阅 value ().
Returns the value stored in the datapoint type.
另请参阅 setValue ().