OpenBIC
OpenSource Bridge-IC
modbus_server.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
20
/* Modbus exception codes */
21
#define MODBUS_EXC_NONE 0
22
#define MODBUS_EXC_ILLEGAL_FC 1
23
#define MODBUS_EXC_ILLEGAL_DATA_ADDR 2
24
#define MODBUS_EXC_ILLEGAL_DATA_VAL 3
25
#define MODBUS_EXC_SERVER_DEVICE_FAILURE 4
26
#define MODBUS_EXC_ACK 5
27
#define MODBUS_EXC_SERVER_DEVICE_BUSY 6
28
#define MODBUS_EXC_MEM_PARITY_ERROR 8
29
#define MODBUS_EXC_GW_PATH_UNAVAILABLE 10
30
#define MODBUS_EXC_GW_TARGET_FAILED_TO_RESP 11
common
service
modbus
modbus_server.h
Generated by
1.9.2