Dynamic Modbus Master
A dynamic wrapper for the modbus master part of esp-modbus written in C++.
 
Loading...
Searching...
No Matches
dynamic_modbus_master::ModbusConfig Struct Reference

Structure to represent the configuration of a Modbus connection. More...

#include <ModbusConfiguration.h>

+ Collaboration diagram for dynamic_modbus_master::ModbusConfig:

Public Attributes

uart_port_t uartPort
 
uint8_t rxdPin
 
uint8_t txdPin
 
uint8_t rtsPin
 
uint32_t baudRate
 
mb_mode_type_t modbusMode
 

Detailed Description

Structure to represent the configuration of a Modbus connection.

Parameters
uartPortThe UART port number to use for Modbus communication, ranging from UART_NUM_0 to UART_NUM_MAX-1.
rxdPinThe pin number of the receive data (RXD) line.
txdPinThe pin number of the transmit data (TXD) line.
rtsPinThe pin number of the request-to-send (RTS) line.
baudRateThe baud rate to use for the UART communication.
modbusModeThe Mode of the Modbus -> RTU or ASCII

Member Data Documentation

◆ baudRate

uint32_t dynamic_modbus_master::ModbusConfig::baudRate

◆ modbusMode

mb_mode_type_t dynamic_modbus_master::ModbusConfig::modbusMode

◆ rtsPin

uint8_t dynamic_modbus_master::ModbusConfig::rtsPin

◆ rxdPin

uint8_t dynamic_modbus_master::ModbusConfig::rxdPin

◆ txdPin

uint8_t dynamic_modbus_master::ModbusConfig::txdPin

◆ uartPort

uart_port_t dynamic_modbus_master::ModbusConfig::uartPort

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