14 #ifndef __PKG_AGILE_MODBUS_TCP_H
15 #define __PKG_AGILE_MODBUS_TCP_H
17 #if AGILE_MODBUS_USING_TCP
32 #define AGILE_MODBUS_TCP_HEADER_LENGTH 7
33 #define AGILE_MODBUS_TCP_PRESET_REQ_LENGTH 12
34 #define AGILE_MODBUS_TCP_PRESET_RSP_LENGTH 8
36 #define AGILE_MODBUS_TCP_CHECKSUM_LENGTH 0
45 #define AGILE_MODBUS_TCP_MAX_ADU_LENGTH 260
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.
struct agile_modbus_tcp agile_modbus_tcp_t
TCP structure.
agile_modbus_t _ctx
modbus handle
uint16_t t_id
Extract from MODBUS Messaging on TCP/IP Implementation Guide V1.0b (page 23/46): The transaction iden...