|
Agile Modbus 1.1.4
Lightweight modbus protocol stack.
|

Functions | |
| static int | agile_modbus_tcp_set_slave (agile_modbus_t *ctx, int slave) |
| TCP set address interface. | |
| static int | agile_modbus_tcp_build_request_basis (agile_modbus_t *ctx, int function, int addr, int nb, uint8_t *req) |
| TCP builds the basic request message interface (header message) | |
| static int | agile_modbus_tcp_build_response_basis (agile_modbus_sft_t *sft, uint8_t *rsp) |
| TCP builds a basic response message interface (header message) | |
| static int | agile_modbus_tcp_prepare_response_tid (const uint8_t *req, int *req_length) |
| TCP ready response interface. | |
| static int | agile_modbus_tcp_send_msg_pre (uint8_t *req, int req_length) |
| TCP pre-send data interface (calculate the value of the length field and store it) | |
| static int | agile_modbus_tcp_check_integrity (agile_modbus_t *ctx, uint8_t *msg, const int msg_length) |
| TCP check receiving data integrity interface. | |
| static int | agile_modbus_tcp_pre_check_confirmation (agile_modbus_t *ctx, const uint8_t *req, const uint8_t *rsp, int rsp_length) |
| TCP pre-check confirmation interface (compare transaction identifier and protocol identifier) | |
|
static |
TCP set address interface.
| ctx | modbus handle |
| slave | slave address |
Definition at line 34 of file agile_modbus_tcp.c.
|
static |
TCP builds the basic request message interface (header message)
| ctx | modbus handle |
| function | function code |
| addr | register address |
| nb | number of registers |
| req | data storage pointer |
Definition at line 49 of file agile_modbus_tcp.c.
|
static |
TCP builds a basic response message interface (header message)
| sft | modbus header parameter structure pointer |
| rsp | data storage pointer |
Definition at line 86 of file agile_modbus_tcp.c.
|
static |
TCP ready response interface.
| req | request data pointer |
| req_length | request data length |
Definition at line 114 of file agile_modbus_tcp.c.
|
static |
TCP pre-send data interface (calculate the value of the length field and store it)
| req | data storage pointer |
| req_length | existing data length |
Definition at line 126 of file agile_modbus_tcp.c.
|
static |
TCP check receiving data integrity interface.
| ctx | modbus handle |
| msg | Receive data pointer |
| msg_length | valid data length |
Definition at line 144 of file agile_modbus_tcp.c.
|
static |
TCP pre-check confirmation interface (compare transaction identifier and protocol identifier)
| ctx | modbus handle |
| req | request data pointer |
| rsp | response data pointer |
| rsp_length | response data length |
Definition at line 159 of file agile_modbus_tcp.c.