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(Error error) | |
| QKnxErrorClassHvac() | |
| Error | error() const |
| bool | setError(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(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.
Error QKnxErrorClassHvac::error() const
Returns the error stored in the datapoint type.
See also setError().
bool QKnxErrorClassHvac::setError(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().