ModbusServerSettings Struct Reference

Modbus/TCP server settings. More...

#include <modbus_server.h>

Data Fields

OsTaskParameters task
 Task parameters. More...
 
NetInterfaceinterface
 Underlying network interface. More...
 
uint16_t port
 Modbus/TCP port number. More...
 
uint8_t unitId
 Unit identifier. More...
 
systime_t timeout
 Idle connection timeout. More...
 
ModbusServerOpenCallback openCallback
 TCP connection open callback function. More...
 
ModbusServerCloseCallback closeCallback
 TCP connection close callback function. More...
 
ModbusServerTlsInitCallback tlsInitCallback
 TLS initialization callback function. More...
 
ModbusServerLockCallback lockCallback
 Lock Modbus table callback function. More...
 
ModbusServerUnlockCallback unlockCallback
 Unlock Modbus table callback function. More...
 
ModbusServerReadCoilCallback readCoilCallback
 Get coil state callback function. More...
 
ModbusServerReadCoilCallback readDiscreteInputCallback
 Get discrete input state callback function. More...
 
ModbusServerWriteCoilCallback writeCoilCallback
 Set coil state callback function. More...
 
ModbusServerReadRegCallback readRegCallback
 Get register value callback function. More...
 
ModbusServerReadRegCallback readHoldingRegCallback
 Get holding register value callback function. More...
 
ModbusServerReadRegCallback readInputRegCallback
 Get input register value callback function. More...
 
ModbusServerWriteRegCallback writeRegCallback
 Set register value callback function. More...
 
ModbusServerProcessPduCallback processPduCallback
 PDU processing callback function. More...
 
ModbusServerTickCallback tickCallback
 Tick callback function. More...
 

Detailed Description

Modbus/TCP server settings.

Definition at line 248 of file modbus_server.h.

Field Documentation

◆ closeCallback

TCP connection close callback function.

Definition at line 256 of file modbus_server.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 251 of file modbus_server.h.

◆ lockCallback

Lock Modbus table callback function.

Definition at line 260 of file modbus_server.h.

◆ openCallback

TCP connection open callback function.

Definition at line 255 of file modbus_server.h.

◆ port

uint16_t port

Modbus/TCP port number.

Definition at line 252 of file modbus_server.h.

◆ processPduCallback

ModbusServerProcessPduCallback processPduCallback

PDU processing callback function.

Definition at line 269 of file modbus_server.h.

◆ readCoilCallback

ModbusServerReadCoilCallback readCoilCallback

Get coil state callback function.

Definition at line 262 of file modbus_server.h.

◆ readDiscreteInputCallback

ModbusServerReadCoilCallback readDiscreteInputCallback

Get discrete input state callback function.

Definition at line 263 of file modbus_server.h.

◆ readHoldingRegCallback

ModbusServerReadRegCallback readHoldingRegCallback

Get holding register value callback function.

Definition at line 266 of file modbus_server.h.

◆ readInputRegCallback

ModbusServerReadRegCallback readInputRegCallback

Get input register value callback function.

Definition at line 267 of file modbus_server.h.

◆ readRegCallback

ModbusServerReadRegCallback readRegCallback

Get register value callback function.

Definition at line 265 of file modbus_server.h.

◆ task

Task parameters.

Definition at line 250 of file modbus_server.h.

◆ tickCallback

Tick callback function.

Definition at line 270 of file modbus_server.h.

◆ timeout

systime_t timeout

Idle connection timeout.

Definition at line 254 of file modbus_server.h.

◆ tlsInitCallback

ModbusServerTlsInitCallback tlsInitCallback

TLS initialization callback function.

Definition at line 258 of file modbus_server.h.

◆ unitId

uint8_t unitId

Unit identifier.

Definition at line 253 of file modbus_server.h.

◆ unlockCallback

Unlock Modbus table callback function.

Definition at line 261 of file modbus_server.h.

◆ writeCoilCallback

ModbusServerWriteCoilCallback writeCoilCallback

Set coil state callback function.

Definition at line 264 of file modbus_server.h.

◆ writeRegCallback

ModbusServerWriteRegCallback writeRegCallback

Set register value callback function.

Definition at line 268 of file modbus_server.h.


The documentation for this struct was generated from the following file: