QKnxErrorClassHvac Class
The QKnxErrorClassHvac class is a datapoint type for storing errors in heating, ventilation, and air conditioning (HVAC). More...
Header: | #include <QKnxErrorClassHvac> |
qmake: | QT += knx |
Inherits: | QKnx1Byte |
Public Types
enum class | Error { NoFault, SensorFault, ProcessControllerFault, ActuatorFault, OtherFault, Invalid } |
Public Functions
QKnxErrorClassHvac(QKnxErrorClassHvac::Error error) | |
QKnxErrorClassHvac() | |
QKnxErrorClassHvac::Error | error() const |
bool | setError(QKnxErrorClassHvac::Error error) |
Detailed Description
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.
See also QKnxDatapointType, QKnx1Byte, QKnxApplicationArea, and Qt KNX Datapoint Type Classes.
Member Type Documentation
enum class QKnxErrorClassHvac::Error
This enum holds the HVAC fault signals stored in the datapoint type.
Constant | Value | Description |
---|---|---|
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. |
Member Function Documentation
QKnxErrorClassHvac::QKnxErrorClassHvac(QKnxErrorClassHvac::Error error)
Creates a fixed size datapoint type with the error set to error.
QKnxErrorClassHvac::QKnxErrorClassHvac()
Creates a fixed size datapoint type with the error set to NoFault
.
QKnxErrorClassHvac::Error QKnxErrorClassHvac::error() const
Returns the error stored in the datapoint type.
See also setError().
bool QKnxErrorClassHvac::setError(QKnxErrorClassHvac::Error error)
Sets the error stored in the datapoint type to error.
Returns true
if the byte was set; otherwise returns false
.
See also error().
© 2024 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.