Searched refs:tmp_adu (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/tests/subsys/modbus/src/ |
D | test_modbus_raw.c | 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() [all …]
|
/Zephyr-latest/samples/subsys/modbus/tcp_server/src/ |
D | main.c | 159 static struct modbus_adu tmp_adu; variable 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() 176 LOG_HEXDUMP_DBG(tmp_adu.data, tmp_adu.length, "resp"); in server_raw_cb() 242 modbus_raw_get_header(&tmp_adu, header); in modbus_tcp_connection() 243 data_len = tmp_adu.length; in modbus_tcp_connection() [all …]
|
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 18 static struct modbus_adu tmp_adu; variable 74 modbus_raw_get_header(&tmp_adu, header); in modbus_tcp_connection() 75 data_len = tmp_adu.length; in modbus_tcp_connection() 77 rc = recv(client, tmp_adu.data, data_len, MSG_WAITALL); in modbus_tcp_connection() 82 LOG_HEXDUMP_DBG(tmp_adu.data, tmp_adu.length, "d:>"); in modbus_tcp_connection() 83 rc = modbus_raw_backend_txn(backend, &tmp_adu); in modbus_tcp_connection() 88 return modbus_tcp_reply(client, &tmp_adu); in modbus_tcp_connection()
|