Home
last modified time | relevance | path

Searched refs:res_hdr (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dsmp_stub.c21 static struct smp_hdr res_hdr; variable
78 memcpy(&res_hdr, nb->data, sizeof(res_hdr)); in smp_uart_tx_pkt()
79 res_hdr.nh_len = sys_be16_to_cpu(res_hdr.nh_len); in smp_uart_tx_pkt()
80 res_hdr.nh_group = sys_be16_to_cpu(res_hdr.nh_group); in smp_uart_tx_pkt()
81 res_hdr.nh_op += 1; /* Request to response */ in smp_uart_tx_pkt()
101 smp_client_single_response(response_buf, &res_hdr); in smp_client_handle_reqs()
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/smp_client/src/
Dclient.c182 static struct smp_client_cmd_req *smp_client_response_discover(const struct smp_hdr *res_hdr) in smp_client_response_discover() argument
200 if (smp_header.nh_seq != res_hdr->nh_seq) { in smp_client_response_discover()
202 } else if (res_hdr->nh_op != response) { in smp_client_response_discover()
225 int smp_client_single_response(struct net_buf *nb, const struct smp_hdr *res_hdr) in smp_client_single_response() argument
232 cmd_req = smp_client_response_discover(res_hdr); in smp_client_single_response()
233 LOG_DBG("Response Header len %d, flags %d OP: %d group %d id %d seq %d", res_hdr->nh_len, in smp_client_single_response()
234 res_hdr->nh_flags, res_hdr->nh_op, res_hdr->nh_group, res_hdr->nh_id, in smp_client_single_response()
235 res_hdr->nh_seq); in smp_client_single_response()
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/smp/
Dsmp_client.h65 int smp_client_single_response(struct net_buf *nb, const struct smp_hdr *res_hdr);