Agile Modbus
1.1.4
Lightweight modbus protocol stack.
|
Agile Modbus package TCP source file. More...
Go to the source code of this file.
Functions | |
static int | agile_modbus_tcp_set_slave (agile_modbus_t *ctx, int slave) |
TCP set address interface. More... | |
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) More... | |
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) More... | |
static int | agile_modbus_tcp_prepare_response_tid (const uint8_t *req, int *req_length) |
TCP ready response interface. More... | |
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) More... | |
static int | agile_modbus_tcp_check_integrity (agile_modbus_t *ctx, uint8_t *msg, const int msg_length) |
TCP check receiving data integrity interface. More... | |
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) More... | |
int | agile_modbus_tcp_init (agile_modbus_tcp_t *ctx, uint8_t *send_buf, int send_bufsz, uint8_t *read_buf, int read_bufsz) |
TCP initialization. More... | |
Variables | |
static const agile_modbus_backend_t | agile_modbus_tcp_backend |
TCP backend interface. More... | |
Agile Modbus package TCP source file.
Definition in file agile_modbus_tcp.c.