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 .
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. |
Creates a fixed size datapoint type with the mode set to mode .
Creates a fixed size datapoint type with the mode set to
Inactive
.
Returns the mode stored in the datapoint type.
另请参阅 setMode ().
Sets the mode stored in the datapoint type to mode .
返回
true
if the byte was set; otherwise returns
false
.
另请参阅 mode ().