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

Slave device status. More...

#include <slave.h>

+ Collaboration diagram for ModbusSlave:

Data Fields

ModbusRegisterCallback registerCallback
 A pointer to register callback (required)
 
ModbusSlaveExceptionCallback exceptionCallback
 A pointer to exception callback (optional)
 
const ModbusSlaveFunctionHandlerfunctions
 A pointer to an array of function handlers (required)
 
uint8_t functionCount
 Number of function handlers in the array (functions)
 
ModbusBuffer response
 Stores slave's response to master.
 
void * context
 User's context pointer

 

Detailed Description

Slave device status.

See also
modbusSlaveInit()
modbusSlaveDestroy()

Field Documentation

◆ context

void* ModbusSlave::context

User's context pointer

◆ exceptionCallback

ModbusSlaveExceptionCallback ModbusSlave::exceptionCallback

A pointer to exception callback (optional)

◆ functionCount

uint8_t ModbusSlave::functionCount

Number of function handlers in the array (functions)

◆ functions

const ModbusSlaveFunctionHandler* ModbusSlave::functions

A pointer to an array of function handlers (required)

◆ registerCallback

ModbusRegisterCallback ModbusSlave::registerCallback

A pointer to register callback (required)

◆ response

ModbusBuffer ModbusSlave::response

Stores slave's response to master.


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