Agile Modbus  1.1.4
Lightweight modbus protocol stack.
Slave Exported Types
Collaboration diagram for Slave Exported Types:

Data Structures

struct  agile_modbus_slave_info
 Agile Modbus slave information structure. More...
 

Typedefs

typedef int(* agile_modbus_slave_callback_t) (agile_modbus_t *ctx, struct agile_modbus_slave_info *slave_info, const void *data)
 Slave callback function. More...
 

Detailed Description

Typedef Documentation

◆ agile_modbus_slave_callback_t

typedef int(* agile_modbus_slave_callback_t) (agile_modbus_t *ctx, struct agile_modbus_slave_info *slave_info, const void *data)

Slave callback function.

Parameters
ctxmodbus handle
slave_infoslave information body
dataprivate data
Returns
=0: normal; <0: Abnormal (-AGILE_MODBUS_EXCEPTION_UNKNOW(-255): Unknown exception, the slave will not package the response data) (Other negative exception codes: package exception response data from the opportunity)

Definition at line 265 of file agile_modbus.h.