QKnxSensorSelect Class

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

头: #include <QKnxSensorSelect>
qmake: QT += knx
继承: QKnx1Byte

公共类型

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

公共函数

QKnxSensorSelect (QKnxSensorSelect::Mode mode )
QKnxSensorSelect ()
QKnxSensorSelect::Mode mode () const
bool setMode (QKnxSensorSelect::Mode 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.

另请参阅 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .

成员类型文档编制

enum class QKnxSensorSelect:: Mode

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

常量 描述
QKnxSensorSelect::Mode::Inactive 0x00 The sensor is inactive.
QKnxSensorSelect::Mode::DigitalInputNotInverted 0x01 The sensor provides digital input in not inverted form.
QKnxSensorSelect::Mode::DigitalInputInverted 0x02 The sensor provides inverted digital input.
QKnxSensorSelect::Mode::AnalogInput 0x03 The sensor provides analog input.
QKnxSensorSelect::Mode::TemperatureSensorInput 0x04 The sensor provides temperature input.
QKnxSensorSelect::Mode::Invalid 0xff The value is invalid.

成员函数文档编制

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.

另请参阅 setMode ().

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

Sets the mode stored in the datapoint type to mode .

返回 true if the byte was set; otherwise returns false .

另请参阅 mode ().