| 1 | // Copyright (C) 2017 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QMODBUS_SYMBOLS_P_H |
| 5 | #define QMODBUS_SYMBOLS_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | enum Coil { |
| 19 | On = 0xff00, |
| 20 | Off = 0x0000 |
| 21 | }; |
| 22 | |
| 23 | namespace Diagnostics { |
| 24 | |
| 25 | enum SubFunctionCode { |
| 26 | ReturnQueryData = 0x0000, |
| 27 | RestartCommunicationsOption = 0x0001, |
| 28 | ReturnDiagnosticRegister = 0x0002, |
| 29 | ChangeAsciiInputDelimiter = 0x0003, |
| 30 | ForceListenOnlyMode = 0x0004, |
| 31 | ClearCountersAndDiagnosticRegister = 0x000a, |
| 32 | ReturnBusMessageCount = 0x000b, |
| 33 | ReturnBusCommunicationErrorCount = 0x000c, // CRC error counter |
| 34 | ReturnBusExceptionErrorCount = 0x000d, |
| 35 | ReturnServerMessageCount = 0x000e, |
| 36 | ReturnServerNoResponseCount = 0x000f, |
| 37 | ReturnServerNAKCount = 0x0010, |
| 38 | ReturnServerBusyCount = 0x0011, |
| 39 | ReturnBusCharacterOverrunCount = 0x0012, |
| 40 | ClearOverrunCounterAndFlag = 0x0014 |
| 41 | }; |
| 42 | |
| 43 | } |
| 44 | |
| 45 | namespace EncapsulatedInterfaceTransport { |
| 46 | |
| 47 | enum SubFunctionCode { |
| 48 | CanOpenGeneralReference = 0x0D, |
| 49 | ReadDeviceIdentification = 0x0E |
| 50 | }; |
| 51 | |
| 52 | } |
| 53 | |
| 54 | #endif // QMODBUS_SYMBOLS_P_H |
| 55 | |