QKnx8BitSet Class

The QKnx8BitSet class is a datapoint type with binary-coded values in all fields. 更多...

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

QKnxDeviceControl and QKnxGeneralStatus

公共函数

QKnx8BitSet (quint8 value )
QKnx8BitSet ()
bool bit (int index ) const
quint8 byte () const
void setBit (bool value , int index )
bool setByte (quint8 value )

重实现公共函数

virtual bool isValid () const override

保护函数

QKnx8BitSet (int subType , quint8 value )

详细描述

This is a fixed size datapoint type with the length of 1 byte and the 8-bit set.

可能的值包括: No bits set ( 0x00 ) 和 All bits set ( 0xff ).

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

成员函数文档编制

[protected] QKnx8BitSet:: QKnx8BitSet ( int subType , quint8 value )

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

QKnx8BitSet:: QKnx8BitSet ( quint8 value )

Creates a fixed size datapoint type with the value value .

QKnx8BitSet:: QKnx8BitSet ()

Creates a fixed size datapoint type with the 8-bit set to 0 .

bool QKnx8BitSet:: bit ( int index ) const

返回 true if the bit at index 有设置, false 否则。

另请参阅 setBit ().

quint8 QKnx8BitSet:: byte () const

Creates a fixed size datapoint type with the value set to 0 .

另请参阅 setByte ().

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

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

void QKnx8BitSet:: setBit ( bool value , int index )

Sets the bit at index to value .

另请参阅 bit ().

bool QKnx8BitSet:: setByte ( quint8 value )

Sets the value of the datapoint type to value .

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

另请参阅 byte ().