QKnxCombinedInfoOnOff Class

The QKnxCombinedInfoOnOff class is a datapoint type for storing combined information about the on and off states of a multiple-channel binary actuator. More...

Header: #include <QKnxCombinedInfoOnOff>
qmake: QT += knx
Inherits: QKnx32BitSet

Public Types

class OutputInfo
enum Output { First, Second, Third, Fourth, ..., Sixteenth }
enum OutputState { Off, On }
enum OutputValidity { Invalid, Valid }

Public Functions

QKnxCombinedInfoOnOff()
QKnxCombinedInfoOnOff(const QVector<QKnxCombinedInfoOnOff::OutputInfo> &infos)
QKnxCombinedInfoOnOff(QKnxCombinedInfoOnOff::Output output, QKnxCombinedInfoOnOff::OutputState state, QKnxCombinedInfoOnOff::OutputValidity validity)
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

Additional Inherited Members

Detailed Description

The QKnxCombinedInfoOnOff class is a datapoint type for storing combined information about the on and off states of a multiple-channel binary actuator.

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.

See also QKnx32BitSet, QKnxDatapointType, and Qt KNX Datapoint Type Classes.

Member Type Documentation

enum QKnxCombinedInfoOnOff::Output

This enum type holds the output bit stored in the datapoint type.

ConstantValue
QKnxCombinedInfoOnOff::First0
QKnxCombinedInfoOnOff::Second1
QKnxCombinedInfoOnOff::Third2
QKnxCombinedInfoOnOff::Fourth3
QKnxCombinedInfoOnOff::Fifth4
QKnxCombinedInfoOnOff::Sixth5
QKnxCombinedInfoOnOff::Seventh6
QKnxCombinedInfoOnOff::Eighth7
QKnxCombinedInfoOnOff::Ninth8
QKnxCombinedInfoOnOff::Tenth9
QKnxCombinedInfoOnOff::Eleventh10
QKnxCombinedInfoOnOff::Twelfth11
QKnxCombinedInfoOnOff::Thirteenth12
QKnxCombinedInfoOnOff::Fourteenth13
QKnxCombinedInfoOnOff::Fifteenth14
QKnxCombinedInfoOnOff::Sixteenth15

enum QKnxCombinedInfoOnOff::OutputState

This enum type holds the state of the output stored in the datapoint type.

ConstantValueDescription
QKnxCombinedInfoOnOff::Off0x00The output state is Off.
QKnxCombinedInfoOnOff::On0x01The output state is On.

enum QKnxCombinedInfoOnOff::OutputValidity

This enum type holds the validity of the output stored in the datapoint type.

ConstantValueDescription
QKnxCombinedInfoOnOff::Invalid0x00The output state is invalid.
QKnxCombinedInfoOnOff::Valid0x01The output state is valid.

Member Function Documentation

QKnxCombinedInfoOnOff::QKnxCombinedInfoOnOff()

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.

QKnxCombinedInfoOnOff::QKnxCombinedInfoOnOff(const QVector<QKnxCombinedInfoOnOff::OutputInfo> &infos)

Creates a fixed size datapoint type with the output information infos.

QKnxCombinedInfoOnOff::QKnxCombinedInfoOnOff(QKnxCombinedInfoOnOff::Output output, QKnxCombinedInfoOnOff::OutputState state, QKnxCombinedInfoOnOff::OutputValidity validity)

Creates a fixed size datapoint type with the output bit output, state state, and validity validity.

bool QKnxCombinedInfoOnOff::setState(QKnxCombinedInfoOnOff::Output output, QKnxCombinedInfoOnOff::OutputState state)

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.

See also state().

bool QKnxCombinedInfoOnOff::setValidity(QKnxCombinedInfoOnOff::Output output, QKnxCombinedInfoOnOff::OutputValidity validity)

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.

See also validity().

bool QKnxCombinedInfoOnOff::setValue(const QVector<QKnxCombinedInfoOnOff::OutputInfo> &infos)

Sets the value stored in the datapoint type to infos.

Returns true if the value was set successfully; otherwise returns false.

bool QKnxCombinedInfoOnOff::setValue(QKnxCombinedInfoOnOff::Output output, QKnxCombinedInfoOnOff::OutputState state, QKnxCombinedInfoOnOff::OutputValidity validity)

Sets the output bit stored in the datapoint type to output, the output state to state, and output validity to validity.

Returns true if the value was set; otherwise returns false.

QKnxCombinedInfoOnOff::OutputState QKnxCombinedInfoOnOff::state(QKnxCombinedInfoOnOff::Output output) const

Returns the state of the output bit output.

See also setState().

QKnxCombinedInfoOnOff::OutputValidity QKnxCombinedInfoOnOff::validity(QKnxCombinedInfoOnOff::Output output) const

Returns the validity of the output bit output.

See also setValidity().

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.