The QKnxErrorClassHvac class is a datapoint type for storing errors in heating, ventilation, and air conditioning (HVAC). 更多...
| 头: | #include <QKnxErrorClassHvac> |
| qmake: | QT += knx |
| 继承: | QKnx1Byte |
| enum class | Error { NoFault, SensorFault, ProcessControllerFault, ActuatorFault, OtherFault, Invalid } |
| QKnxErrorClassHvac (QKnxErrorClassHvac::Error error ) | |
| QKnxErrorClassHvac () | |
| QKnxErrorClassHvac::Error | error () const |
| bool | setError (QKnxErrorClassHvac::Error error ) |
The range for the
Error
value is from
No fault, 0
to
Other fault, 4
.
This is a fixed size datapoint type with the length of 1 byte.
另请参阅 QKnxDatapointType , QKnx1Byte , QKnxApplicationArea ,和 Qt KNX Datapoint Type Classes .
This enum holds the HVAC fault signals stored in the datapoint type.
| 常量 | 值 | 描述 |
|---|---|---|
QKnxErrorClassHvac::Error::NoFault
|
0x00
|
No fault signals were transmitted. |
QKnxErrorClassHvac::Error::SensorFault
|
0x01
|
An error occurred in the RAM, EEPROM, UI, watchdog, and so on. |
QKnxErrorClassHvac::Error::ProcessControllerFault
|
0x02
|
An error occurred in the process or controller. |
QKnxErrorClassHvac::Error::ActuatorFault
|
0x03
|
An error occurred in the actuator. |
QKnxErrorClassHvac::Error::OtherFault
|
0x04
|
An undefined error occurred. |
QKnxErrorClassHvac::Error::Invalid
|
0xff
|
The value is invalid. |
Creates a fixed size datapoint type with the error set to error .
Creates a fixed size datapoint type with the error set to
NoFault
.
Returns the error stored in the datapoint type.
另请参阅 setError ().
Sets the error stored in the datapoint type to error .
返回
true
if the byte was set; otherwise returns
false
.
另请参阅 error ().