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 Mode { Inactive, DigitalInputNotInverted, DigitalInputInverted, AnalogInput, TemperatureSensorInput, Invalid }

Public Functions

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

Additional Inherited Members

Detailed Description

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

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 QKnxSensorSelect::Mode

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

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

Member Function Documentation

QKnxSensorSelect::QKnxSensorSelect()

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

QKnxSensorSelect::QKnxSensorSelect(QKnxSensorSelect::Mode mode)

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

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

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