Agile Modbus  1.1.4
Lightweight modbus protocol stack.
Master Private Functions
Collaboration diagram for Master Private Functions:

Functions

static int agile_modbus_check_confirmation (agile_modbus_t *ctx, uint8_t *req, uint8_t *rsp, int rsp_length)
 Check and confirm the slave response data. More...
 

Detailed Description

Function Documentation

◆ agile_modbus_check_confirmation()

static int agile_modbus_check_confirmation ( agile_modbus_t ctx,
uint8_t *  req,
uint8_t *  rsp,
int  rsp_length 
)
static

Check and confirm the slave response data.

Parameters
ctxmodbus handle
reqrequest data pointer
rspresponse data pointer
rsp_lengthresponse data length
Returns
>=0: The length of the corresponding function code response object (such as 03 function code, the value represents the number of registers); Others: exception (-1: message error; others: exception code can be obtained according to -128 -$return value)

Definition at line 343 of file agile_modbus.c.

Here is the call graph for this function:
Here is the caller graph for this function: