The QKnxCombinedInfoOnOff class is a datapoint type for storing combined information about the on and off states of a multiple-channel binary actuator. 更多...
头: | #include <QKnxCombinedInfoOnOff> |
qmake: | QT += knx |
继承: | QKnx32BitSet |
enum class | 输出 { First, Second, Third, Fourth, Fifth, …, Sixteenth } |
enum class | OutputState { Off, On } |
enum class | OutputValidity { Invalid, Valid } |
QKnxCombinedInfoOnOff (QKnxCombinedInfoOnOff::Output output , QKnxCombinedInfoOnOff::OutputState state , QKnxCombinedInfoOnOff::OutputValidity validity ) | |
QKnxCombinedInfoOnOff (const QVector<QKnxCombinedInfoOnOff::OutputInfo> & infos ) | |
QKnxCombinedInfoOnOff () | |
bool | setState (QKnxCombinedInfoOnOff::Output output , QKnxCombinedInfoOnOff::OutputState state ) |
bool | setValidity (QKnxCombinedInfoOnOff::Output output , QKnxCombinedInfoOnOff::OutputValidity validity ) |
bool | setValue (const QVector<QKnxCombinedInfoOnOff::OutputInfo> & infos ) |
bool | setValue (QKnxCombinedInfoOnOff::Output output , QKnxCombinedInfoOnOff::OutputState state , QKnxCombinedInfoOnOff::OutputValidity validity ) |
QKnxCombinedInfoOnOff::OutputState | state (QKnxCombinedInfoOnOff::Output output ) const |
QKnxCombinedInfoOnOff::OutputValidity | validity (QKnxCombinedInfoOnOff::Output output ) const |
This datapoint type may only be used for encoding the combined binary output information of a multiple-channel binary actuator. It avoids the bus load that is caused by individual single bit state outputs, especially in case of simultaneous changes, such as all off .
If one or more output bits are not used or the output states are not valid, the assigned mask bits of the output shall be set to the value
0
.
This is a fixed size datapoint type with the length of 4 bytes.
另请参阅 QKnx32BitSet , QKnxDatapointType ,和 Qt KNX Datapoint Type Classes .
This enum type holds the output bit stored in the datapoint type.
常量 | 值 |
---|---|
QKnxCombinedInfoOnOff::Output::First
|
0
|
QKnxCombinedInfoOnOff::Output::Second
|
1
|
QKnxCombinedInfoOnOff::Output::Third
|
2
|
QKnxCombinedInfoOnOff::Output::Fourth
|
3
|
QKnxCombinedInfoOnOff::Output::Fifth
|
4
|
QKnxCombinedInfoOnOff::Output::Sixth
|
5
|
QKnxCombinedInfoOnOff::Output::Seventh
|
6
|
QKnxCombinedInfoOnOff::Output::Eighth
|
7
|
QKnxCombinedInfoOnOff::Output::Ninth
|
8
|
QKnxCombinedInfoOnOff::Output::Tenth
|
9
|
QKnxCombinedInfoOnOff::Output::Eleventh
|
10
|
QKnxCombinedInfoOnOff::Output::Twelfth
|
11
|
QKnxCombinedInfoOnOff::Output::Thirteenth
|
12
|
QKnxCombinedInfoOnOff::Output::Fourteenth
|
13
|
QKnxCombinedInfoOnOff::Output::Fifteenth
|
14
|
QKnxCombinedInfoOnOff::Output::Sixteenth
|
15
|
This enum type holds the state of the output stored in the datapoint type.
常量 | 值 | 描述 |
---|---|---|
QKnxCombinedInfoOnOff::OutputState::Off
|
0x00
|
The output state is
Off
.
|
QKnxCombinedInfoOnOff::OutputState::On
|
0x01
|
The output state is
On
.
|
This enum type holds the validity of the output stored in the datapoint type.
常量 | 值 | 描述 |
---|---|---|
QKnxCombinedInfoOnOff::OutputValidity::Invalid
|
0x00
|
The output state is invalid. |
QKnxCombinedInfoOnOff::OutputValidity::Valid
|
0x01
|
The output state is valid. |
Creates a fixed size datapoint type with the output bit output , state state , and validity validity .
Creates a fixed size datapoint type with the output information infos .
Creates a fixed size datapoint type with the output bit set to QKnxCombinedInfoOnOff::First , output state to QKnxCombinedInfoOnOff::Off , and output validity to QKnxCombinedInfoOnOff::Invalid .
Sets the output bit stored in the datapoint type to output and the state to state .
If the value is outside the allowed range, returns
false
and does not set the value.
另请参阅 state ().
Sets the output bit stored in the datapoint type to output and the validity to validity .
If the value is outside the allowed range, returns
false
and does not set the value.
另请参阅 validity ().
Sets the value stored in the datapoint type to infos .
返回
true
if the value was set successfully; otherwise returns
false
.
Sets the output bit stored in the datapoint type to output , the output state to state , and output validity to validity .
返回
true
if the value was set; otherwise returns
false
.
Returns the state of the output bit output .
另请参阅 setState ().
Returns the validity of the output bit output .
另请参阅 setValidity ().