liblightmodbus  2.0
A lightweight, cross-platform Modbus RTU library
Functions
mpregs.c File Reference

Functions

ModbusError modbusParseResponse0304 (ModbusMaster *status, ModbusParser *parser, ModbusParser *requestParser)
 Processes responses for requests 03 (read multiple holding registers) and 04 (read multiple input registers) More...
 
ModbusError modbusParseResponse06 (ModbusMaster *status, ModbusParser *parser, ModbusParser *requestParser)
 Processes responses for request 06 (write a single holding register) More...
 
ModbusError modbusParseResponse16 (ModbusMaster *status, ModbusParser *parser, ModbusParser *requestParser)
 Processes responses for request 15 (write multiple holding registers) More...
 
ModbusError modbusParseResponse22 (ModbusMaster *status, ModbusParser *parser, ModbusParser *requestParser)
 Processes responses for request 22 (mask-write holding register) More...
 

Function Documentation

◆ modbusParseResponse0304()

ModbusError modbusParseResponse0304 ( ModbusMaster status,
ModbusParser parser,
ModbusParser requestParser 
)

Processes responses for requests 03 (read multiple holding registers) and 04 (read multiple input registers)

Note
Requires F03M or F04M module (see Building liblightmodbus)
modbusParseResponse03 and modbusParseResponse04 macros are aliases of this function
Parameters
statusThe master structure to work with
parserA parser structure containing response data
requestParserA parser structure containing request data
Returns
A ModbusError error code
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ modbusParseResponse06()

ModbusError modbusParseResponse06 ( ModbusMaster status,
ModbusParser parser,
ModbusParser requestParser 
)

Processes responses for request 06 (write a single holding register)

Note
Requires F06M module (see Building liblightmodbus)
Parameters
statusThe master structure to work with
parserA parser structure containing response data
requestParserA parser structure containing request data
Returns
A ModbusError error code
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ modbusParseResponse16()

ModbusError modbusParseResponse16 ( ModbusMaster status,
ModbusParser parser,
ModbusParser requestParser 
)

Processes responses for request 15 (write multiple holding registers)

Note
Requires F16M module (see Building liblightmodbus)
Parameters
statusThe master structure to work with
parserA parser structure containing response data
requestParserA parser structure containing request data
Returns
A ModbusError error code
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ modbusParseResponse22()

ModbusError modbusParseResponse22 ( ModbusMaster status,
ModbusParser parser,
ModbusParser requestParser 
)

Processes responses for request 22 (mask-write holding register)

Note
Requires F22M module (see Building liblightmodbus)
Parameters
statusThe master structure to work with
parserA parser structure containing response data
requestParserA parser structure containing request data
Returns
A ModbusError error code
+ Here is the call graph for this function:
+ Here is the caller graph for this function: