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

Contains arguments for the register callback function. More...

#include <slave.h>

Data Fields

ModbusDataType type
 Type of accessed data.
 
ModbusRegisterQuery query
 Type of request made to the register.
 
uint16_t index
 Index of the register.
 
uint16_t value
 Value of the register.
 
uint8_t function
 Function accessing the register.
 

Detailed Description

Contains arguments for the register callback function.

Field Documentation

◆ function

uint8_t ModbusRegisterCallbackArgs::function

Function accessing the register.

◆ index

uint16_t ModbusRegisterCallbackArgs::index

Index of the register.

◆ query

ModbusRegisterQuery ModbusRegisterCallbackArgs::query

Type of request made to the register.

◆ type

ModbusDataType ModbusRegisterCallbackArgs::type

Type of accessed data.

◆ value

uint16_t ModbusRegisterCallbackArgs::value

Value of the register.


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