QKnxErrorClassSystem Class
The QKnxErrorClassSystem class is a datapoint type for storing system errors. More...
Header: | #include <QKnxErrorClassSystem> |
qmake: | QT += knx |
Inherits: | QKnx1Byte |
Public Types
enum class | Error { NoFault, GeneralDeviceFault, CommunicationFault, ConfigurationFault, HardwareFault, …, Invalid } |
Public Functions
QKnxErrorClassSystem(QKnxErrorClassSystem::Error error) | |
QKnxErrorClassSystem() | |
QKnxErrorClassSystem::Error | error() const |
bool | setError(QKnxErrorClassSystem::Error error) |
Detailed Description
This datapoint type stores fault signals transmitted in the application area QKnxApplicationArea::SystemFunctionCommonInterest.
The range for the Error value is from No fault, 0
to Group object type exceeds, 18
.
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 QKnxErrorClassSystem::Error
This enum holds the system error stored in the datapoint type.
Constant | Value | Description |
---|---|---|
QKnxErrorClassSystem::Error::NoFault | 0x00 | No fault signals were transmitted. |
QKnxErrorClassSystem::Error::GeneralDeviceFault | 0x01 | An error occurred in the RAM, EEPROM, UI, watchdog, and so on. |
QKnxErrorClassSystem::Error::CommunicationFault | 0x02 | A communication error occurred. For example, a failure in a formerly present communication partner or a timeout in the system clock signal (heartbeat). |
QKnxErrorClassSystem::Error::ConfigurationFault | 0x03 | A configuration error was detected. For example, two devices with the same individual address were detected or multiple system clocks were set as the master clock. |
QKnxErrorClassSystem::Error::HardwareFault | 0x04 | A hardware error occurred. |
QKnxErrorClassSystem::Error::SoftwareFault | 0x05 | A software error occurred. |
QKnxErrorClassSystem::Error::InsufficientNonVolatileMemory | 0x06 | Not enough non-volatile memory |
QKnxErrorClassSystem::Error::InsufficientVolatileMemory | 0x07 | Not enough volatile memory |
QKnxErrorClassSystem::Error::MemoryAllocationCommandWithSize0Received | 0x08 | A memory allocation command with the size 0 was received. |
QKnxErrorClassSystem::Error::CrcError | 0x09 | A CRC error occurred. |
QKnxErrorClassSystem::Error::WatchdogResetDetected | 0x0a | A watchdog reset was detected. |
QKnxErrorClassSystem::Error::InvalidOpCodeDetected | 0x0b | An invalid OP code was detected. |
QKnxErrorClassSystem::Error::GeneralProtectionFault | 0x0c | A general protection error was detected. |
QKnxErrorClassSystem::Error::MaximalTableLengthExceeded | 0x0d | The maximum table length was exceeded. |
QKnxErrorClassSystem::Error::UndefinedLoadCommandReceived | 0x0e | An undefined load command was received. |
QKnxErrorClassSystem::Error::GroupAddressTableIsNotSorted | 0x0f | The group address table is not sorted. |
QKnxErrorClassSystem::Error::InvalidConnectionNumberTsap | 0x10 | The connection number TSAP is invalid. |
QKnxErrorClassSystem::Error::InvalidGroupObjectNumberAsap | 0x11 | The connection number ASAP is invalid. |
QKnxErrorClassSystem::Error::GroupObjectTypeExceeds | 0x12 | The group object type exceeds PID_MAX_APDU_LENGTH H - 2 . |
QKnxErrorClassSystem::Error::Invalid | 0xff | The value is invalid. |
Member Function Documentation
QKnxErrorClassSystem::QKnxErrorClassSystem(QKnxErrorClassSystem::Error error)
Creates a fixed size datapoint type with the system error set to error.
QKnxErrorClassSystem::QKnxErrorClassSystem()
Creates a fixed size datapoint type with the system error set to NoFault
.
QKnxErrorClassSystem::Error QKnxErrorClassSystem::error() const
Returns the system error stored in the datapoint type.
See also setError().
bool QKnxErrorClassSystem::setError(QKnxErrorClassSystem::Error error)
Sets the system 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.