QKnxErrorClassHvac Class

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 .

成员类型文档编制

enum class QKnxErrorClassHvac:: Error

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.

成员函数文档编制

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.

另请参阅 setError ().

bool QKnxErrorClassHvac:: setError ( QKnxErrorClassHvac::Error error )

Sets the error stored in the datapoint type to error .

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

另请参阅 error ().