Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
modbus_iface_param Struct Reference

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

#include <modbus.h>

Data Fields

enum modbus_mode mode
 Mode of the interface.
 
union { 
 
   struct modbus_server_param   server 
 
   uint32_t   rx_timeout 
 Amount of time client will wait for a response from the server. More...
 
};  
 
union { 
 
   struct modbus_serial_param   serial 
 Serial support parameter of the interface. More...
 
   struct modbus_raw_cb   rawcb 
 Pointer to raw ADU callback function. More...
 
};  
 

Detailed Description

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

Field Documentation

◆ [union]

union { ... } modbus_iface_param

◆ [union]

union { ... } modbus_iface_param

◆ mode

enum modbus_mode modbus_iface_param::mode

Mode of the interface.

◆ rawcb

struct modbus_raw_cb modbus_iface_param::rawcb

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: