The QKnxErrorClassSystem class is a datapoint type for storing system errors. 更多...
头: | #include <QKnxErrorClassSystem> |
qmake: | QT += knx |
继承: | QKnx1Byte |
enum class | Error { NoFault, GeneralDeviceFault, CommunicationFault, ConfigurationFault, HardwareFault, …, Invalid } |
QKnxErrorClassSystem (QKnxErrorClassSystem::Error error ) | |
QKnxErrorClassSystem () | |
QKnxErrorClassSystem::Error | error () const |
bool | setError (QKnxErrorClassSystem::Error error ) |
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.
另请参阅 QKnxDatapointType , QKnx1Byte , QKnxApplicationArea ,和 Qt KNX Datapoint Type Classes .
This enum holds the system error stored in the datapoint type.
常量 | 值 | 描述 |
---|---|---|
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. |
Creates a fixed size datapoint type with the system error set to error .
Creates a fixed size datapoint type with the system error set to
NoFault
.
Returns the system error stored in the datapoint type.
另请参阅 setError ().
Sets the system error stored in the datapoint type to error .
返回
true
if the byte was set; otherwise returns
false
.
另请参阅 error ().