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 Error { NoFault, GeneralDeviceFault, CommunicationFault, ConfigurationFault, ..., Invalid }

Public Functions

QKnxErrorClassSystem()
QKnxErrorClassSystem(QKnxErrorClassSystem::Error error)
QKnxErrorClassSystem::Error error() const
bool setError(QKnxErrorClassSystem::Error error)

Additional Inherited Members

Detailed Description

The QKnxErrorClassSystem class is a datapoint type for storing system errors.

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 QKnxErrorClassSystem::Error

This enum holds the system error stored in the datapoint type.

ConstantValueDescription
QKnxErrorClassSystem::NoFault0x00No fault signals were transmitted.
QKnxErrorClassSystem::GeneralDeviceFault0x01An error occurred in the RAM, EEPROM, UI, watchdog, and so on.
QKnxErrorClassSystem::CommunicationFault0x02A communication error occurred. For example, a failure in a formerly present communication partner or a timeout in the system clock signal (heartbeat).
QKnxErrorClassSystem::ConfigurationFault0x03A 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::HardwareFault0x04A hardware error occurred.
QKnxErrorClassSystem::SoftwareFault0x05A software error occurred.
QKnxErrorClassSystem::InsufficientNonVolatileMemory0x06Not enough non-volatile memory
QKnxErrorClassSystem::InsufficientVolatileMemory0x07Not enough volatile memory
QKnxErrorClassSystem::MemoryAllocationCommandWithSize0Received0x08A memory allocation command with the size 0 was received.
QKnxErrorClassSystem::CrcError0x09A CRC error occurred.
QKnxErrorClassSystem::WatchdogResetDetected0x0aA watchdog reset was detected.
QKnxErrorClassSystem::InvalidOpCodeDetected0x0bAn invalid OP code was detected.
QKnxErrorClassSystem::GeneralProtectionFault0x0cA general protection error was detected.
QKnxErrorClassSystem::MaximalTableLengthExceeded0x0dThe maximum table length was exceeded.
QKnxErrorClassSystem::UndefinedLoadCommandReceived0x0eAn undefined load command was received.
QKnxErrorClassSystem::GroupAddressTableIsNotSorted0x0fThe group address table is not sorted.
QKnxErrorClassSystem::InvalidConnectionNumberTsap0x10The connection number TSAP is invalid.
QKnxErrorClassSystem::InvalidGroupObjectNumberAsap0x11The connection number ASAP is invalid.
QKnxErrorClassSystem::GroupObjectTypeExceeds0x12The group object type exceeds PID_MAX_APDU_LENGTH H - 2.
QKnxErrorClassSystem::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxErrorClassSystem::QKnxErrorClassSystem()

Creates a fixed size datapoint type with the system error set to NoFault.

QKnxErrorClassSystem::QKnxErrorClassSystem(QKnxErrorClassSystem::Error error)

Creates a fixed size datapoint type with the system error set to error.

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().

© 2018 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.