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 ().