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

Master device status. More...

#include <master.h>

+ Collaboration diagram for ModbusMaster:

Data Fields

ModbusDataCallback dataCallback
 A pointer to data callback (required)
 
ModbusMasterExceptionCallback exceptionCallback
 A pointer to an exception callback (optional)
 
const ModbusMasterFunctionHandlerfunctions
 A non-owning pointer to array of function handlers.
 
uint8_t functionCount
 Size of functions array.
 
ModbusBuffer request
 Stores master's request for slave.
 
void * context
 User's context pointer.
 

Detailed Description

Master device status.

See also
modbusMasterInit()
modbusMasterDestroy()

Field Documentation

◆ context

void* ModbusMaster::context

User's context pointer.

◆ dataCallback

ModbusDataCallback ModbusMaster::dataCallback

A pointer to data callback (required)

◆ exceptionCallback

ModbusMasterExceptionCallback ModbusMaster::exceptionCallback

A pointer to an exception callback (optional)

◆ functionCount

uint8_t ModbusMaster::functionCount

Size of functions array.

◆ functions

const ModbusMasterFunctionHandler* ModbusMaster::functions

A non-owning pointer to array of function handlers.

◆ request

ModbusBuffer ModbusMaster::request

Stores master's request for slave.


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