Lines Matching refs:tmp_adu
12 static struct modbus_adu tmp_adu; variable
24 tmp_adu.trans_id = adu->trans_id; in server_raw_cb()
25 tmp_adu.proto_id = adu->proto_id; in server_raw_cb()
26 tmp_adu.length = adu->length; in server_raw_cb()
27 tmp_adu.unit_id = adu->unit_id; in server_raw_cb()
28 tmp_adu.fc = adu->fc; in server_raw_cb()
29 memcpy(tmp_adu.data, adu->data, in server_raw_cb()
30 MIN(adu->length, sizeof(tmp_adu.data))); in server_raw_cb()
32 LOG_HEXDUMP_DBG(tmp_adu.data, tmp_adu.length, "resp"); in server_raw_cb()
50 tmp_adu.trans_id = adu->trans_id; in client_raw_cb()
51 tmp_adu.proto_id = adu->proto_id; in client_raw_cb()
52 tmp_adu.length = adu->length; in client_raw_cb()
53 tmp_adu.unit_id = adu->unit_id; in client_raw_cb()
54 tmp_adu.fc = adu->fc; in client_raw_cb()
55 memcpy(tmp_adu.data, adu->data, in client_raw_cb()
56 MIN(adu->length, sizeof(tmp_adu.data))); in client_raw_cb()
58 LOG_HEXDUMP_DBG(tmp_adu.data, tmp_adu.length, "c->s"); in client_raw_cb()
64 modbus_raw_submit_rx(server_iface, &tmp_adu); in client_raw_cb()
70 modbus_raw_submit_rx(client_iface, &tmp_adu); in client_raw_cb()