Legrand / Raritan / Server Technology Xerus™ PDU JSON-RPC API
ModbusCfg.idl
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*
3  * Copyright 2022 Raritan Inc. All rights reserved.
4  */
5 
6 #ifndef __PERIPHERAL_MODBUS_CFG_IDL__
7 #define __PERIPHERAL_MODBUS_CFG_IDL__
8 
9 /**
10  * Peripheral Devices
11  */
12 module peripheral {
13  interface ModbusCfg {
14  structure SerialSettings {
15  enumeration Parity { NONE, EVEN, ODD };
16  int baud;
17  Parity parity;
18  int dataBits;
19  int stopBits;
20  };
21 
22  enumeration ModbusFunction {
23  COIL,
24  DISCRETE_INPUT,
25  HOLDING_REGISTER,
26  INPUT_REGISTER
27  };
28 
29  constant int EXCEPTION_ILLEGAL_FUNCTION = 1;
30  constant int EXCEPTION_ILLEGAL_DATA_ADDRESS = 2;
31  constant int EXCEPTION_ILLEGAL_DATA_VALUE = 3;
32  constant int EXCEPTION_SLAVE_OR_SERVER_FAILURE = 4;
33  constant int EXCEPTION_ACKNOWLEDGE = 5;
34  constant int EXCEPTION_SLAVE_OR_SERVER_BUSY = 6;
35  constant int EXCEPTION_NEGATIVE_ACKNOWLEDGE = 7;
36  constant int EXCEPTION_MEMORY_PARITY = 8;
37  constant int EXCEPTION_GATEWAY_PATH = 10;
38  constant int EXCEPTION_GATEWAY_TARGET = 11;
39 
40  enumeration SpecificModbusErrors {
41  ERROR_BADCRC,
42  ERROR_BADDATA,
43  ERROR_BADEXC,
44  ERROR_UNKEXC,
45  ERROR_MDATA,
46  ERROR_OTHER
47  };
48  };
49 }
50 
51 #endif /* __PERIPHERAL_MODBUS_CFG_IDL__ */
Definition: ModbusCfg.idl:13
Peripheral Devices.
Definition: GatewaySensorManager.idl:17
Definition: ModbusCfg.idl:14