Lines Matching refs:adu
163 static int server_raw_cb(const int iface, const struct modbus_adu *adu, in server_raw_cb() argument
168 tmp_adu.trans_id = adu->trans_id; in server_raw_cb()
169 tmp_adu.proto_id = adu->proto_id; in server_raw_cb()
170 tmp_adu.length = adu->length; in server_raw_cb()
171 tmp_adu.unit_id = adu->unit_id; in server_raw_cb()
172 tmp_adu.fc = adu->fc; in server_raw_cb()
173 memcpy(tmp_adu.data, adu->data, in server_raw_cb()
174 MIN(adu->length, CONFIG_MODBUS_BUFFER_SIZE)); in server_raw_cb()
214 static int modbus_tcp_reply(int client, struct modbus_adu *adu) in modbus_tcp_reply() argument
218 modbus_raw_put_header(adu, header); in modbus_tcp_reply()
223 if (send(client, adu->data, adu->length, 0) < 0) { in modbus_tcp_reply()