Agile Modbus
1.1.4
Lightweight modbus protocol stack.
|
Agile Modbus backend interface structure. More...
#include <agile_modbus.h>
Data Fields | |
uint32_t | backend_type |
Backend type. More... | |
uint32_t | header_length |
Header length, excluding function code. More... | |
uint32_t | checksum_length |
Check data length. More... | |
uint32_t | max_adu_length |
Backend ADU length. More... | |
int(* | set_slave )(agile_modbus_t *ctx, int slave) |
Set address interface. More... | |
int(* | build_request_basis )(agile_modbus_t *ctx, int function, int addr, int nb, uint8_t *req) |
Build a basic request message interface. More... | |
int(* | build_response_basis )(agile_modbus_sft_t *sft, uint8_t *rsp) |
Build a basic response message interface. More... | |
int(* | prepare_response_tid )(const uint8_t *req, int *req_length) |
Prepare response interface. More... | |
int(* | send_msg_pre )(uint8_t *req, int req_length) |
Pre-send data interface. More... | |
int(* | check_integrity )(agile_modbus_t *ctx, uint8_t *msg, const int msg_length) |
Check the receive data integrity interface. More... | |
int(* | pre_check_confirmation )(agile_modbus_t *ctx, const uint8_t *req, const uint8_t *rsp, int rsp_length) |
Pre-check confirmation interface. More... | |
Agile Modbus backend interface structure.
Definition at line 198 of file agile_modbus.h.
uint32_t agile_modbus_backend::backend_type |
Backend type.
Definition at line 199 of file agile_modbus.h.
uint32_t agile_modbus_backend::header_length |
Header length, excluding function code.
Definition at line 200 of file agile_modbus.h.
uint32_t agile_modbus_backend::checksum_length |
Check data length.
Definition at line 201 of file agile_modbus.h.
uint32_t agile_modbus_backend::max_adu_length |
Backend ADU length.
Definition at line 202 of file agile_modbus.h.
int(* agile_modbus_backend::set_slave) (agile_modbus_t *ctx, int slave) |
Set address interface.
Definition at line 203 of file agile_modbus.h.
int(* agile_modbus_backend::build_request_basis) (agile_modbus_t *ctx, int function, int addr, int nb, uint8_t *req) |
Build a basic request message interface.
Definition at line 204 of file agile_modbus.h.
int(* agile_modbus_backend::build_response_basis) (agile_modbus_sft_t *sft, uint8_t *rsp) |
Build a basic response message interface.
Definition at line 206 of file agile_modbus.h.
int(* agile_modbus_backend::prepare_response_tid) (const uint8_t *req, int *req_length) |
Prepare response interface.
Definition at line 207 of file agile_modbus.h.
int(* agile_modbus_backend::send_msg_pre) (uint8_t *req, int req_length) |
Pre-send data interface.
Definition at line 208 of file agile_modbus.h.
int(* agile_modbus_backend::check_integrity) (agile_modbus_t *ctx, uint8_t *msg, const int msg_length) |
Check the receive data integrity interface.
Definition at line 209 of file agile_modbus.h.
int(* agile_modbus_backend::pre_check_confirmation) (agile_modbus_t *ctx, const uint8_t *req, const uint8_t *rsp, int rsp_length) |
Pre-check confirmation interface.
Definition at line 210 of file agile_modbus.h.