modbus-tcp-private.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2001-2011 Stéphane Raimbault <stephane.raimbault@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef _MODBUS_TCP_PRIVATE_H_
20 #define _MODBUS_TCP_PRIVATE_H_
21 
22 #define _MODBUS_TCP_HEADER_LENGTH 7
23 #define _MODBUS_TCP_PRESET_REQ_LENGTH 12
24 #define _MODBUS_TCP_PRESET_RSP_LENGTH 8
25 
26 #define _MODBUS_TCP_CHECKSUM_LENGTH 0
27 
28 typedef struct _modbus_tcp {
29  /* TCP port */
30  int port;
31  /* IP address */
32  char ip[16];
33 } modbus_tcp_t;
34 
35 #define _MODBUS_TCP_PI_NODE_LENGTH 1025
36 #define _MODBUS_TCP_PI_SERVICE_LENGTH 32
37 
38 typedef struct _modbus_tcp_pi {
39  /* TCP port */
40  int port;
41  /* Node */
43  /* Service */
46 
47 #endif /* _MODBUS_TCP_PRIVATE_H_ */
struct _modbus_tcp modbus_tcp_t
#define _MODBUS_TCP_PI_NODE_LENGTH
#define _MODBUS_TCP_PI_SERVICE_LENGTH
struct _modbus_tcp_pi modbus_tcp_pi_t


libmodbus
Author(s):
autogenerated on Sat Nov 21 2020 03:17:32