The QKnx1BitControlled class is a boolean datapoint type with a control part. 更多...
头: | #include <QKnx1BitControlled> |
qmake: | QT += knx |
继承: | QKnxFixedSizeDatapointType |
QKnx1BitControlled () | |
bool | controlBit () const |
void | setControlBit (bool control ) |
void | setValueBit (bool value ) |
bool | valueBit () const |
virtual bool | isValid () const override |
QKnx1BitControlled (int subType , const QKnxDatapointType & dpt , bool state , bool control ) | |
QKnx1BitControlled (int subType , bool state , bool control ) |
This is a fixed size datapoint type with the length of 1 byte, though only two bits are used by the actual implementation.
The right side bit corresponds to the QKnx1Bit datapoint type value, whereas the left side bit represents the control part. For example, switch with priority control.
It is a base class for the following datapoint types:
QKnxAlarmControl
QKnxBinaryValueControl
QKnxBoolControl
QKnxDirection1Control
-
QKnxUpDown
with a control part.
QKnxDirection2Control
-
QKnxOpenClose
with a control part.
QKnxEnableControl
QKnxInvertControl
QKnxRampControl
QKnxStartControl
QKnxStateControl
QKnxStepControl
QKnxSwitchControl
另请参阅 QKnxDatapointType , QKnx1Bit ,和 Qt KNX Datapoint Type Classes .
[protected]
QKnx1BitControlled::
QKnx1BitControlled
(
int
subType
, const
QKnxDatapointType
&
dpt
,
bool
state
,
bool
control
)
Creates a fixed size datapoint type with the subtype subType , datapoint type dpt , value state , and control control .
[protected]
QKnx1BitControlled::
QKnx1BitControlled
(
int
subType
,
bool
state
,
bool
control
)
Creates a fixed size datapoint type with the subtype subType , value state , and control control .
Creates a fixed size datapoint type with the value and control part set to
false
.
Returns the control stored in the datapoint type.
另请参阅 setControlBit ().
[override virtual]
bool
QKnx1BitControlled::
isValid
() const
重实现: QKnxDatapointType::isValid () const.
Sets the control part of the datapoint type to control .
另请参阅 controlBit ().
Sets the value of the datapoint type to value .
另请参阅 valueBit ().
Returns the value stored in the datapoint type.
另请参阅 setValueBit ().