Home
last modified time | relevance | path

Searched refs:response (Results 26 – 50 of 219) sorted by relevance

123456789

/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_server.rst82 struct coap_packet response;
91 /* Determine response type */
94 coap_packet_init(&response, data, sizeof(data), COAP_VERSION_1, type, tkl, token,
98 coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT,
102 coap_packet_append_payload_marker(&response);
103 coap_packet_append_payload(&response, (uint8_t *)msg, sizeof(msg));
105 /* Send to response back to the client */
106 return coap_resource_send(resource, &response, addr, addr_len, NULL);
114 /* Return a CoAP response code as a shortcut for an empty ACK message */
127 As demonstrated in the example above, a CoAP resource handler can return response codes to let
[all …]
Dhttp_client.rst38 req.response = response_cb;
47 If the server responds to the request, the library provides the response to the
48 application through the response callback registered in the request structure.
49 As the library can provide the response in chunks, the application must be able
52 Together with the structure containing the response data, the callback function
55 The following is an example of a very simple response handling function:
/Zephyr-latest/subsys/mgmt/hawkbit/
Dhawkbit_autohandler.c26 enum hawkbit_response response = hawkbit_probe(); in autohandler() local
28 k_event_set(&hawkbit_autohandler_event, BIT(response)); in autohandler()
30 switch (response) { in autohandler()
77 LOG_ERR("Invalid response: %d", response); in autohandler()
/Zephyr-latest/tests/subsys/sip_svc/src/
Dmain.c33 static void get_sync_callback(uint32_t c_token, struct sip_svc_response *response) in get_sync_callback() argument
35 if (response == NULL) { in get_sync_callback()
39 struct private_data *priv = (struct private_data *)response->priv_data; in get_sync_callback()
42 printk("sip_svc version in TFA is %2ld.%02ld\n", response->a2, response->a3); in get_sync_callback()
93 static void get_async_callback(uint32_t c_token, struct sip_svc_response *response) in get_async_callback() argument
95 if (response == NULL) { in get_async_callback()
99 struct private_data *priv = (struct private_data *)response->priv_data; in get_async_callback()
102 uint32_t *resp_data = (uint32_t *)response->resp_data_addr; in get_async_callback()
103 uint32_t resp_len = response->resp_data_size / sizeof(uint32_t); in get_async_callback()
/Zephyr-latest/subsys/dap/
DKconfig14 int "Maximum packet buffers for request and response data."
18 Maximum packet buffers for request and response data.
21 int "Maximum packet size for request and response data."
25 Maximum packet size for request and response data.
/Zephyr-latest/subsys/sip_svc/
Dsip_svc_agilex_mailbox_shell.c159 static void cmd_send_callback(uint32_t c_token, struct sip_svc_response *response) in cmd_send_callback() argument
161 if (response == NULL) { in cmd_send_callback()
165 struct private_data *priv = (struct private_data *)response->priv_data; in cmd_send_callback()
173 shell_print(sh, "\theader=%08x\n", response->header); in cmd_send_callback()
174 shell_print(sh, "\ta0=%016lx\n", response->a0); in cmd_send_callback()
175 shell_print(sh, "\ta1=%016lx\n", response->a1); in cmd_send_callback()
176 shell_print(sh, "\ta2=%016lx\n", response->a2); in cmd_send_callback()
177 shell_print(sh, "\ta3=%016lx\n", response->a3); in cmd_send_callback()
180 resp_data = (uint32_t *)response->resp_data_addr; in cmd_send_callback()
181 resp_len = response->resp_data_size / 4; in cmd_send_callback()
Dsip_svc_subsys.c396 struct sip_svc_response *response) in sip_svc_callback() argument
433 ((sip_svc_cb_fn)(trans_id_item->arg1))(ctrl->clients[c_idx].token, response); in sip_svc_callback()
466 struct sip_svc_response response; in sip_svc_request_handler() local
526 response.header = SIP_SVC_PROTO_HEADER(error_code, trans_id); in sip_svc_request_handler()
527 response.a0 = res.a0; in sip_svc_request_handler()
528 response.a1 = res.a1; in sip_svc_request_handler()
529 response.a2 = res.a2; in sip_svc_request_handler()
530 response.a3 = res.a3; in sip_svc_request_handler()
531 response.resp_data_addr = request.resp_data_addr; in sip_svc_request_handler()
532 response.resp_data_size = request.resp_data_size; in sip_svc_request_handler()
[all …]
Dsip_svc_shell.c185 static void cmd_send_callback(uint32_t c_token, struct sip_svc_response *response) in cmd_send_callback() argument
187 if (response == NULL) { in cmd_send_callback()
191 struct private_data *priv = (struct private_data *)response->priv_data; in cmd_send_callback()
195 shell_print(sh, "\theader=%08x\n", response->header); in cmd_send_callback()
196 shell_print(sh, "\ta0=%016lx\n", response->a0); in cmd_send_callback()
197 shell_print(sh, "\ta1=%016lx\n", response->a1); in cmd_send_callback()
198 shell_print(sh, "\ta2=%016lx\n", response->a2); in cmd_send_callback()
199 shell_print(sh, "\ta3=%016lx\n", response->a3); in cmd_send_callback()
/Zephyr-latest/include/zephyr/net/
Dcoap_link_format.h46 struct coap_packet *response,
64 struct coap_packet *response,
/Zephyr-latest/drivers/sip_svc/
DKconfig.sip_smc_agilex13 int "Size of response buffer used for ASYNC transactions."
17 Size of response buffer used for ASYNC transactions.For Intel Agilex platform
18 the maximum size of response buffer size is 4096 and minimum is 4 bytes.
/Zephyr-latest/drivers/bluetooth/hci/
Dapollox_blue.c143 uint8_t response[2] = {0, 0}; in bt_apollo_spi_send() local
148 ret = transceive(command, 1, response, 2); in bt_apollo_spi_send()
149 if ((response[0] != READY_BYTE0) || (response[1] != READY_BYTE1) || ret) { in bt_apollo_spi_send()
173 uint8_t response[2] = {0, 0}; in bt_apollo_spi_rcv() local
186 ret = transceive(command, 1, response, 2); in bt_apollo_spi_rcv()
198 ret = transceive(NULL, 0, response, 2); in bt_apollo_spi_rcv()
207 read_size = (uint16_t)(response[0] | response[1] << 8); in bt_apollo_spi_rcv()
/Zephyr-latest/subsys/mgmt/mcumgr/
DKconfig23 bool "Legacy rc (result code) response behaviour"
26 This will enable legacy result code response behaviour of having rc
32 response will be empty with the new behaviour enabled, as opposed to
33 the old behaviour where the rc field will be present in the response.
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn.c539 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_GWINFO}; in mqtt_sn_do_gwinfo() local
550 response.params.gwinfo.gw_id = gw->gw_id; in mqtt_sn_do_gwinfo()
553 response.params.gwinfo.gw_add = addr; in mqtt_sn_do_gwinfo()
555 encode_and_send(client, &response, client->radius_gwinfo); in mqtt_sn_do_gwinfo()
1220 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_WILLTOPIC}; in handle_willtopicreq() local
1222 response.params.willtopic.qos = client->will_qos; in handle_willtopicreq()
1223 response.params.willtopic.retain = client->will_retain; in handle_willtopicreq()
1224 response.params.willtopic.topic.data = client->will_topic.data; in handle_willtopicreq()
1225 response.params.willtopic.topic.size = client->will_topic.size; in handle_willtopicreq()
1227 encode_and_send(client, &response, 0); in handle_willtopicreq()
[all …]
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_client.c30 static int recv_response(struct coap_client *client, struct coap_packet *response, bool *truncated);
31 static int handle_response(struct coap_client *client, const struct coap_packet *response,
607 struct coap_packet response; in handle_poll() local
610 ret = recv_response(client, &response, &response_truncated); in handle_poll()
621 ret = handle_response(client, &response, response_truncated); in handle_poll()
645 static int recv_response(struct coap_client *client, struct coap_packet *response, bool *truncated) in recv_response() argument
673 ret = coap_packet_parse(response, client->recv_buf, available_len, NULL, 0); in recv_response()
764 static bool find_echo_option(const struct coap_packet *response, struct coap_option *option) in find_echo_option() argument
766 return coap_find_options(response, COAP_OPTION_ECHO, option, 1); in find_echo_option()
769 static int handle_response(struct coap_client *client, const struct coap_packet *response, in handle_response() argument
[all …]
/Zephyr-latest/doc/services/device_mgmt/smp_groups/
Dsmp_group_0.rst70 Echo response
73 Echo response header fields:
86 CBOR data of successful response:
157 Task statistics response
160 Task statistics response header fields:
171 CBOR data of successful response:
277 Memory pool statistics response
280 Memory pool statistics response header fields:
291 CBOR data of successful response:
385 Date-time get response
[all …]
Dsmp_group_10.rst44 Count of supported groups response
47 Count of supported groups response header fields:
58 CBOR data of successful response:
129 List supported groups response
132 List supported groups response header fields:
143 CBOR data of successful response:
233 Fetch single group ID response
236 Fetch single group ID response header fields:
247 CBOR data of successful response:
354 Details on supported groups response
[all …]
Dsmp_group_9.rst24 a shell, but both a request and a response are transported over SMP.
66 Shell command line execute response
69 Command line execute response header fields:
80 CBOR data of successful response:
Dsmp_group_3.rst68 Read setting response
71 Read setting response header fields:
82 CBOR data of successful response:
172 Write setting response
175 Write setting response header fields:
262 Delete setting response
265 Delete setting response header fields:
338 Commit settings response
341 Commit settings response header fields:
414 Load settings response
[all …]
/Zephyr-latest/samples/net/sockets/sntp_client/
DREADME.rst21 for a response. When the response is received, the current epoch time, in
22 seconds, as well as the status code of the response (0 on success), is
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/
DKconfig18 Controls the response of the ISO IN endpoint to an IN token when no
20 ready. When disabled, no response is sent (bus timeout occurs).
/Zephyr-latest/drivers/modem/
DKconfig.at_shell21 int "Timeout waiting for response to AT command in seconds"
29 int "Maximum size of AT response"
/Zephyr-latest/tests/modules/thrift/ThriftTest/src/
Dclient.cpp164 Numberz::type response = context.client->testEnum(Numberz::ONE); in ZTEST() local
165 zassert_equal(response, Numberz::ONE, NULL); in ZTEST()
167 response = context.client->testEnum(Numberz::TWO); in ZTEST()
168 zassert_equal(response, Numberz::TWO, NULL); in ZTEST()
170 response = context.client->testEnum(Numberz::EIGHT); in ZTEST()
171 zassert_equal(response, Numberz::EIGHT, NULL); in ZTEST()
/Zephyr-latest/samples/bluetooth/periodic_sync_rsp/
DREADME.rst16 Which subevent to listen to and in which response slot to respond is
19 the assigned subevent and response slot.
22 subevents and response slots, to that they can communicate with the
/Zephyr-latest/subsys/sd/
Dsd_ops.c40 if ((cmd.response[0U] & SDHC_SPI_R2_CARD_LOCKED) || in sdmmc_read_status()
41 (cmd.response[0U] & SDHC_SPI_R2_UNLOCK_FAIL)) { in sdmmc_read_status()
43 } else if ((cmd.response[0U] & SDHC_SPI_R2_WP_VIOLATION) || in sdmmc_read_status()
44 (cmd.response[0U] & SDHC_SPI_R2_ERASE_PARAM) || in sdmmc_read_status()
45 (cmd.response[0U] & SDHC_SPI_R2_OUT_OF_RANGE)) { in sdmmc_read_status()
47 } else if ((cmd.response[0U] & SDHC_SPI_R2_ERR) || in sdmmc_read_status()
48 (cmd.response[0U] & SDHC_SPI_R2_CC_ERR) || in sdmmc_read_status()
49 (cmd.response[0U] & SDHC_SPI_R2_ECC_FAIL)) { in sdmmc_read_status()
56 if ((cmd.response[0U] & SD_R1_RDY_DATA) && in sdmmc_read_status()
57 (SD_R1_CURRENT_STATE(cmd.response[0U]) == SDMMC_R1_TRANSFER)) { in sdmmc_read_status()
[all …]
/Zephyr-latest/include/zephyr/net/http/
Dclient.h217 struct http_response response; member
242 http_response_cb_t response; member

123456789