liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
Loading...
Searching...
No Matches
ModbusDataCallbackArgs Struct Reference

Arguments for the data callback. More...

#include <master.h>

Data Fields

ModbusDataType type
 Type of Modbus register.
 
uint16_t index
 Index of the register.
 
uint16_t value
 Value of the register.
 
uint8_t function
 Function that reported this value.
 
uint8_t address
 Address of the slave.
 

Detailed Description

Arguments for the data callback.

Field Documentation

◆ address

uint8_t ModbusDataCallbackArgs::address

Address of the slave.

◆ function

uint8_t ModbusDataCallbackArgs::function

Function that reported this value.

◆ index

uint16_t ModbusDataCallbackArgs::index

Index of the register.

◆ type

ModbusDataType ModbusDataCallbackArgs::type

Type of Modbus register.

◆ value

uint16_t ModbusDataCallbackArgs::value

Value of the register.


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