Lines Matching +full:mb +full:- +full:0 +full:- +full:15
5 * SPDX-License-Identifier: Apache-2.0
9 * Parts of this file are based on mb.h from uC/Modbus Stack.
14 * Copyright 2003-2020 Silicon Laboratories Inc. www.silabs.com
16 * SPDX-License-Identifier: APACHE-2.0
20 * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0.
46 #define MODBUS_FC15_COILS_WR 15
49 /* Diagnostic sub-function codes */
50 #define MODBUS_FC08_SUBF_QUERY 0
56 #define MODBUS_FC08_SUBF_SERVER_NO_RESP_CTR 15
59 #define MODBUS_COIL_OFF_CODE 0x0000
60 #define MODBUS_COIL_ON_CODE 0xFF00
62 #define MODBUS_CRC16_POLY 0xA001
69 #define MODBUS_ADU_PROTO_ID 0x0000
74 /* RTU timeout (maximum inter-frame delay) */
90 #define MODBUS_STATE_CONFIGURED 0
171 * @retval 0 If the function was successful,
172 * -ENOTSUP if Modbus mode is not supported,
173 * -ETIMEDOUT on timeout,
174 * -EMSGSIZE on length error,
175 * -EIO on CRC error.
215 * @retval 0 If the function was successful,
216 * -ENOTSUP if serial line mode is not supported,
217 * -EMSGSIZE on length error,
218 * -EIO on CRC error.
227 * @retval 0 If the function was successful,
228 * -ENOTSUP if serial line mode is not supported.
238 * @retval 0 If the function was successful.