QKnxSensorSelect Class

The QKnxSensorSelect class is a datapoint type for storing the sensor mode. More...

Header: #include <QKnxSensorSelect>
qmake: QT += knx
Inherits: QKnx1Byte

Public Types

enum class Mode { Inactive, DigitalInputNotInverted, DigitalInputInverted, AnalogInput, TemperatureSensorInput, Invalid }

Public Functions

QKnxSensorSelect(QKnxSensorSelect::Mode mode)
QKnxSensorSelect()
QKnxSensorSelect::Mode mode() const
bool setMode(QKnxSensorSelect::Mode mode)

Detailed Description

The range for the Mode value is from Inactive, 0 to Temperature sensor input, 12.

This is a fixed size datapoint type with the length of 1 byte.

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

Member Type Documentation

enum class QKnxSensorSelect::Mode

This enum holds the sensor mode stored in the datapoint type.

ConstantValueDescription
QKnxSensorSelect::Mode::Inactive0x00The sensor is inactive.
QKnxSensorSelect::Mode::DigitalInputNotInverted0x01The sensor provides digital input in not inverted form.
QKnxSensorSelect::Mode::DigitalInputInverted0x02The sensor provides inverted digital input.
QKnxSensorSelect::Mode::AnalogInput0x03The sensor provides analog input.
QKnxSensorSelect::Mode::TemperatureSensorInput0x04The sensor provides temperature input.
QKnxSensorSelect::Mode::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxSensorSelect::QKnxSensorSelect(QKnxSensorSelect::Mode mode)

Creates a fixed size datapoint type with the mode set to mode.

QKnxSensorSelect::QKnxSensorSelect()

Creates a fixed size datapoint type with the mode set to Inactive.

QKnxSensorSelect::Mode QKnxSensorSelect::mode() const

Returns the mode stored in the datapoint type.

See also setMode().

bool QKnxSensorSelect::setMode(QKnxSensorSelect::Mode mode)

Sets the mode stored in the datapoint type to mode.

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

See also mode().

© 2023 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.