liblightmodbus  2.0
A lightweight, cross-platform Modbus RTU library
Data Fields
modbusMasterUserFunction Struct Reference

Associates user-defined response parser function with the function ID. More...

#include <master.h>

Data Fields

uint8_t function
 The function code. More...
 
ModbusError(* handler )(struct modbusMaster *status, ModbusParser *parser, ModbusParser *requestParser)
 Pointer to the user defined parsing function. More...
 

Detailed Description

Associates user-defined response parser function with the function ID.

Field Documentation

◆ function

uint8_t modbusMasterUserFunction::function

The function code.

◆ handler

ModbusError( * modbusMasterUserFunction::handler) (struct modbusMaster *status, ModbusParser *parser, ModbusParser *requestParser)

Pointer to the user defined parsing function.


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