The QKnx8BitSet class is a datapoint type with binary-coded values in all fields. 更多...
头: | #include <QKnx8BitSet> |
qmake: | QT += knx |
继承: | QKnxFixedSizeDatapointType |
继承者: |
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 .
Creates a fixed size datapoint type with the value value .
Creates a fixed size datapoint type with the 8-bit set to
0
.
返回
true
if the bit at
index
有设置,
false
否则。
另请参阅 setBit ().
Creates a fixed size datapoint type with the value set to
0
.
另请参阅 setByte ().
[override virtual]
bool
QKnx8BitSet::
isValid
() const
重实现: QKnxDatapointType::isValid () const.
Sets the bit at index to value .
另请参阅 bit ().
Sets the value of the datapoint type to value .
返回
true
if the value was set; otherwise returns
false
.
另请参阅 byte ().