Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
modbus_iface_param Struct Reference

User parameter structure to configure Modbus interfase as client or server. More...

#include <modbus.h>

Data Fields

enum modbus_mode mode
 
union {
   struct modbus_server_param   server
 
   uint32_t   rx_timeout
 
}; 
 
union {
   struct modbus_serial_param   serial
 
   modbus_raw_cb_t   raw_tx_cb
 
}; 
 

Detailed Description

User parameter structure to configure Modbus interfase as client or server.

Field Documentation

◆ 

union { ... } modbus_iface_param::@128

◆ 

union { ... } modbus_iface_param::@130

◆ mode

enum modbus_mode modbus_iface_param::mode

Mode of the interface

◆ raw_tx_cb

modbus_raw_cb_t modbus_iface_param::raw_tx_cb

Pointer to raw ADU callback function

◆ rx_timeout

uint32_t modbus_iface_param::rx_timeout

Amount of time client will wait for a response from the server.

◆ serial

struct modbus_serial_param modbus_iface_param::serial

Serial support parameter of the interface

◆ server

struct modbus_server_param modbus_iface_param::server

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