Macros | Functions
modbus-tcp.h File Reference
#include "libmodbus/modbus.h"
Include dependency graph for modbus-tcp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MODBUS_TCP_DEFAULT_PORT   502
 
#define MODBUS_TCP_MAX_ADU_LENGTH   260
 
#define MODBUS_TCP_SLAVE   0xFF
 

Functions

modbus_tmodbus_new_tcp (const char *ip_address, int port)
 
modbus_tmodbus_new_tcp_pi (const char *node, const char *service)
 
int modbus_tcp_accept (modbus_t *ctx, int *socket)
 
int modbus_tcp_listen (modbus_t *ctx, int nb_connection)
 
int modbus_tcp_pi_accept (modbus_t *ctx, int *socket)
 
int modbus_tcp_pi_listen (modbus_t *ctx, int nb_connection)
 

Macro Definition Documentation

#define MODBUS_TCP_DEFAULT_PORT   502

Definition at line 35 of file modbus-tcp.h.

#define MODBUS_TCP_MAX_ADU_LENGTH   260

Definition at line 41 of file modbus-tcp.h.

#define MODBUS_TCP_SLAVE   0xFF

Definition at line 36 of file modbus-tcp.h.

Function Documentation

modbus_t* modbus_new_tcp ( const char *  ip_address,
int  port 
)

Definition at line 636 of file modbus-tcp.c.

modbus_t* modbus_new_tcp_pi ( const char *  node,
const char *  service 
)

Definition at line 689 of file modbus-tcp.c.

int modbus_tcp_accept ( modbus_t ctx,
int *  socket 
)

Definition at line 524 of file modbus-tcp.c.

int modbus_tcp_listen ( modbus_t ctx,
int  nb_connection 
)

Definition at line 387 of file modbus-tcp.c.

int modbus_tcp_pi_accept ( modbus_t ctx,
int *  socket 
)

Definition at line 545 of file modbus-tcp.c.

int modbus_tcp_pi_listen ( modbus_t ctx,
int  nb_connection 
)

Definition at line 430 of file modbus-tcp.c.



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