liblightmodbus
2.0
A lightweight, cross-platform Modbus RTU library
|
Associates user defined parser function with the function ID. More...
#include <slave.h>
Data Fields | |
uint8_t | function |
The function code. More... | |
ModbusError(* | handler )(struct modbusSlave *status, ModbusParser *parser) |
Pointer to the user defined function. More... | |
Associates user defined parser function with the function ID.
SLAVE_USER_FUNCTIONS
module (see Building liblightmodbus) uint8_t modbusSlaveUserFunction::function |
The function code.
ModbusError( * modbusSlaveUserFunction::handler) (struct modbusSlave *status, ModbusParser *parser) |
Pointer to the user defined function.
status | Slave structure to work with |
parser | The parser structure containing frame data |