Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 219) sorted by relevance

123456789

/Zephyr-latest/tests/drivers/gpio/gpio_nrf/src/
Dmain.c67 int response; in ZTEST() local
73 response = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_ACTIVE_HIGH); in ZTEST()
74 zassert_ok(response, "Pin configuration failed: %d", response); in ZTEST()
76 response = gpio_pin_set(port, TEST_PIN, 0); in ZTEST()
77 zassert_ok(response, "Pin low state set failed: %d", response); in ZTEST()
79 response = gpio_pin_set(port, TEST_PIN, 1); in ZTEST()
80 zassert_ok(response, "Pin high state set failed: %d", response); in ZTEST()
82 response = gpio_pin_toggle(port, TEST_PIN); in ZTEST()
83 zassert_ok(response, "Pin toggle failed: %d", response); in ZTEST()
85 response = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | GPIO_PULL_DOWN); in ZTEST()
[all …]
/Zephyr-latest/subsys/dap/
Dcmsis_dap.c72 uint8_t *const response) in dap_info() argument
74 uint8_t *info = response + 1; in dap_info()
160 response[0] = length; in dap_info()
168 uint8_t *const response) in dap_host_status() argument
182 *response = DAP_ERROR; in dap_host_status()
186 response[0] = DAP_OK; in dap_host_status()
193 uint8_t *const response) in dap_connect() argument
227 response[0] = port; in dap_connect()
233 uint8_t *const response) in dap_disconnect() argument
247 response[0] = DAP_OK; in dap_disconnect()
[all …]
/Zephyr-latest/subsys/net/lib/http/
Dhttp_client.c182 if (req->internal.response.http_cb && in on_url()
183 req->internal.response.http_cb->on_url) { in on_url()
184 req->internal.response.http_cb->on_url(parser, at, length); in on_url()
197 len = MIN(length, sizeof(req->internal.response.http_status) - 1); in on_status()
198 memcpy(req->internal.response.http_status, at, len); in on_status()
199 req->internal.response.http_status[len] = 0; in on_status()
200 req->internal.response.http_status_code = in on_status()
204 req->internal.response.http_status); in on_status()
206 if (req->internal.response.http_cb && in on_status()
207 req->internal.response.http_cb->on_status) { in on_status()
[all …]
/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/
Dmain.c24 uint8_t response = 0; in read_sensor_register() local
26 err = i2c_reg_read_byte(i2c_device, DEVICE_ADDRESS, register_address, &response); in read_sensor_register()
28 TC_PRINT("I2C read reg, addr: 0x%x, val: 0x%x\n", register_address, response); in read_sensor_register()
29 return response; in read_sensor_register()
63 uint8_t response = 0; in set_sensor_iir_filter() local
66 response = read_sensor_register(CONF_REGISTER_ADDRESS); in set_sensor_iir_filter()
67 response &= ~IIR_FILER_ORDER_BIT_MASK; in set_sensor_iir_filter()
68 response |= IIR_FILER_COEFF_3 << IIR_FILER_ORDER_BIT_SHIFT; in set_sensor_iir_filter()
69 write_sensor_register(CONF_REGISTER_ADDRESS, response); in set_sensor_iir_filter()
122 unsigned char response = 0; in configure_measurements() local
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dmain.c33 struct mcumgr_image_upload response; in ZTEST() local
43 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
46 zassert_equal(MGMT_ERR_ETIMEOUT, response.status, "Expected to receive %d response %d\n", in ZTEST()
47 MGMT_ERR_ETIMEOUT, response.status); in ZTEST()
53 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
56 zassert_equal(MGMT_ERR_ETIMEOUT, response.status, "Expected to receive %d response %d", in ZTEST()
57 MGMT_ERR_ETIMEOUT, response.status); in ZTEST()
63 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
66 zassert_equal(MGMT_ERR_EINVAL, response.status, "Expected to receive %d response %d", in ZTEST()
67 MGMT_ERR_EINVAL, response.status); in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_link_format.c216 static bool append_to_coap_pkt(struct coap_packet *response, in append_to_coap_pkt() argument
244 res = append(response, str + pos, len); in append_to_coap_pkt()
253 struct coap_packet *response, in format_uri() argument
265 res = append_to_coap_pkt(response, &prefix[0], sizeof(prefix) - 1, in format_uri()
279 res = append_to_coap_pkt(response, *p, path_len, remaining, in format_uri()
295 res = append_to_coap_pkt(response, "/", 1, remaining, offset, in format_uri()
308 res = append_to_coap_pkt(response, ">", 1, remaining, offset, current); in format_uri()
324 struct coap_packet *response, in format_attributes() argument
339 res = append_to_coap_pkt(response, ";", 1, in format_attributes()
352 res = append_to_coap_pkt(response, *attr, attr_len, in format_attributes()
[all …]
/Zephyr-latest/samples/subsys/sip_svc/
DREADME.rst39 Got response of transaction id 0x00 and voltage is 0.846878v
40 Got response of transaction id 0x01 and voltage is 0.858170v
41 Got response of transaction id 0x02 and voltage is 0.860168v
42 Got response of transaction id 0x03 and voltage is 0.846832v
43 Got response of transaction id 0x04 and voltage is 0.858337v
44 Got response of transaction id 0x05 and voltage is 0.871704v
45 Got response of transaction id 0x06 and voltage is 0.859421v
46 Got response of transaction id 0x07 and voltage is 0.857254v
47 Got response of transaction id 0x08 and voltage is 0.858429v
48 Got response of transaction id 0x09 and voltage is 0.859879v
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/hci_test_app/src/
Dmain.c80 uint16_t response = sys_cpu_to_le16(waiting_response); in error_response() local
84 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in error_response()
149 static int send_hci_command(uint16_t opcode, uint8_t param_len, uint16_t response) in send_hci_command() argument
155 waiting_response = response; in send_hci_command()
181 uint16_t response = sys_cpu_to_le16(CMD_ECHO_RSP); in echo() local
184 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in echo()
215 uint16_t response = sys_cpu_to_le16(waiting_response); in command_complete() local
227 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in command_complete()
246 uint16_t response = sys_cpu_to_le16(waiting_response); in command_status() local
259 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in command_status()
[all …]
/Zephyr-latest/drivers/sdhc/
Dsdhc_spi.c184 uint8_t response; in sdhc_spi_card_busy() local
187 ret = sdhc_spi_rx(config->spi_dev, data->spi_cfg, &response, 1); in sdhc_spi_card_busy()
192 if (response == 0xFF) { in sdhc_spi_card_busy()
207 uint8_t response; in sdhc_spi_wait_unbusy() local
210 ret = sdhc_spi_rx(config->spi_dev, data->spi_cfg, &response, 1); in sdhc_spi_wait_unbusy()
214 if (response == 0xFF) { in sdhc_spi_wait_unbusy()
230 uint8_t *response = dev_data->scratch; in sdhc_spi_response_get() local
231 uint8_t *end = response + rx_len; in sdhc_spi_response_get()
240 response += 8; in sdhc_spi_response_get()
241 while (response < end && ((*response & SD_SPI_START) == SD_SPI_START)) { in sdhc_spi_response_get()
[all …]
/Zephyr-latest/drivers/fpga/
Dfpga_altera_agilex_bridge.c114 static void smc_callback(uint32_t c_token, struct sip_svc_response *response) in smc_callback() argument
116 if (response == NULL) { in smc_callback()
125 (struct sip_svc_private_data *)response->priv_data; in smc_callback()
131 LOG_DBG("\theader=%08x", response->header); in smc_callback()
132 LOG_DBG("\ta0=%016lx", response->a0); in smc_callback()
133 LOG_DBG("\ta1=%016lx", response->a1); in smc_callback()
134 LOG_DBG("\ta2=%016lx", response->a2); in smc_callback()
135 LOG_DBG("\ta3=%016lx", response->a3); in smc_callback()
137 private_data->response.header = response->header; in smc_callback()
138 private_data->response.a0 = response->a0; in smc_callback()
[all …]
/Zephyr-latest/samples/net/sockets/http_server/src/static_web_resources/
Dmain.js9 const response = await fetch("/uptime");
10 if (!response.ok) {
11 throw new Error(`Response status: ${response.status}`);
14 const json = await response.json();
27 const response = await fetch("/led", {method : "POST", body : payload});
28 if (!response.ok) {
29 throw new Error(`Response satus: ${response.status}`);
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dseparate.c19 struct coap_packet response; in separate_get() local
41 r = coap_ack_init(&response, request, data, sizeof(data), 0); in separate_get()
46 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
58 r = coap_packet_init(&response, data, sizeof(data), in separate_get()
65 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in separate_get()
71 r = coap_packet_append_payload_marker(&response); in separate_get()
83 r = coap_packet_append_payload(&response, (uint8_t *)payload, in separate_get()
89 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
Dtest.c21 struct coap_packet response; in piggyback_get() local
45 r = coap_packet_init(&response, data, sizeof(data), in piggyback_get()
52 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in piggyback_get()
58 r = coap_packet_append_payload_marker(&response); in piggyback_get()
70 r = coap_packet_append_payload(&response, (uint8_t *)payload, in piggyback_get()
76 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in piggyback_get()
86 struct coap_packet response; in test_del() local
109 r = coap_packet_init(&response, data, sizeof(data), in test_del()
116 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_del()
126 struct coap_packet response; in test_put() local
[all …]
Dlarge.c23 struct coap_packet response; in large_get() local
51 r = coap_packet_init(&response, data, sizeof(data), in large_get()
58 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in large_get()
64 r = coap_append_block2_option(&response, &ctx); in large_get()
69 r = coap_packet_append_payload_marker(&response); in large_get()
79 r = coap_packet_append_payload(&response, (uint8_t *)payload, size); in large_get()
84 r = coap_next_block(&response, &ctx); in large_get()
90 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_get()
101 struct coap_packet response; in large_update_put() local
159 r = coap_ack_init(&response, request, data, sizeof(data), code); in large_update_put()
[all …]
Dcore.c21 struct coap_packet response; in core_get() local
30 r = coap_packet_init(&response, data, sizeof(data), in core_get()
37 r = coap_packet_append_payload_marker(&response); in core_get()
42 r = coap_packet_append_payload(&response, (uint8_t *)dummy_str, in core_get()
48 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in core_get()
Dquery.c20 struct coap_packet response; in query_get() local
61 r = coap_packet_init(&response, data, sizeof(data), in query_get()
68 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in query_get()
74 r = coap_packet_append_payload_marker(&response); in query_get()
86 r = coap_packet_append_payload(&response, (uint8_t *)payload, in query_get()
92 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in query_get()
Dobserver.c28 struct coap_packet response; in send_notification_packet() local
43 r = coap_packet_init(&response, data, sizeof(data), in send_notification_packet()
51 r = coap_append_option_int(&response, COAP_OPTION_OBSERVE, age); in send_notification_packet()
57 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in send_notification_packet()
63 r = coap_packet_append_payload_marker(&response); in send_notification_packet()
75 r = coap_packet_append_payload(&response, (uint8_t *)payload, in send_notification_packet()
83 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in send_notification_packet()
Dlocation_query.c23 struct coap_packet response; in location_query_post() local
46 r = coap_packet_init(&response, data, sizeof(data), in location_query_post()
54 r = coap_packet_append_option(&response, in location_query_post()
62 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in location_query_post()
/Zephyr-latest/drivers/fuel_gauge/max17048/
Dmax17048.c49 int max17048_read_register(const struct device *dev, uint8_t registerId, uint16_t *response) in max17048_read_register() argument
60 *response = sys_get_be16(max17048_buffer); in max17048_read_register()
67 int max17048_adc(const struct device *i2c_dev, uint16_t *response) in max17048_adc() argument
69 return max17048_read_register(i2c_dev, REGISTER_VCELL, response); in max17048_adc()
75 int max17048_voltage(const struct device *i2c_dev, uint32_t *response) in max17048_voltage() argument
92 *response = (uint32_t)raw_voltage * 78.125; in max17048_voltage()
99 int max17048_percent(const struct device *i2c_dev, uint8_t *response) in max17048_percent() argument
114 *response = data / 256; in max17048_percent()
122 int max17048_crate(const struct device *i2c_dev, int16_t *response) in max17048_crate() argument
124 int rc = max17048_read_register(i2c_dev, REGISTER_CRATE, response); in max17048_crate()
[all …]
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c80 static char response[1024]; variable
120 ptr = strstr(response, "HTTP"); in parse_status()
125 ptr = strstr(response, " "); in parse_status()
144 ptr = strstr(response, ":"); in parse_header()
150 ptr = response; in parse_header()
157 if (strcmp(response, "location") != 0) { in parse_header()
200 st = recv(sock, response + i, 1, 0); in skip_headers()
205 if (state == 0 && response[i] == '\r') { in skip_headers()
207 } else if ((state == 0 || state == 1) && response[i] == '\n') { in skip_headers()
209 response[i + 1] = '\0'; in skip_headers()
[all …]
/Zephyr-latest/samples/drivers/ipm/ipm_esp32/
DREADME.rst13 message to the APP using the IPM driver, and waits for the APP response
43 PRO_CPU is sending a request, waiting remote response...
45 PRO_CPU is sending a request, waiting remote response...
47 PRO_CPU is sending a request, waiting remote response...
49 PRO_CPU is sending a request, waiting remote response...
51 PRO_CPU is sending a request, waiting remote response...
53 PRO_CPU is sending a request, waiting remote response...
55 PRO_CPU is sending a request, waiting remote response...
57 PRO_CPU is sending a request, waiting remote response...
/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c49 static char response[1024]; variable
119 int len = recv(sock, response, sizeof(response) - 1, 0); in main()
130 response[len] = 0; in main()
131 printf("%s", response); in main()
/Zephyr-latest/samples/subsys/sip_svc/src/
Dmain.c27 void get_voltage_callback(uint32_t c_token, struct sip_svc_response *response) in get_voltage_callback() argument
29 if (response == NULL) { in get_voltage_callback()
33 struct private_data *priv = (struct private_data *)response->priv_data; in get_voltage_callback()
35 uint32_t *resp_data = (uint32_t *)response->resp_data_addr; in get_voltage_callback()
36 uint32_t resp_len = response->resp_data_size / 4; in get_voltage_callback()
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/
Dmain.c299 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_SET_RSP); in switch_service_set() local
310 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in switch_service_set()
319 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_NOTIFY_RSP); in handle_service_notify() local
325 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in handle_service_notify()
334 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_INDICATE_RSP); in handle_service_indicate() local
340 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in handle_service_indicate()
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_client.rst15 The application is notified about the response via a callback that is provided to the API
46 After initialization, the application can send a CoAP request and wait for the response.
52 - There is a response for the request
56 response and means that the current response is part of a blockwise transfer. When the
57 ``last_block`` is set to true, the response is finished and the client is ready for the next request
60 If the server responds to the request, the library provides the response to the
61 application through the response callback registered in the request structure.
62 As the response can be a blockwise transfer and the client calls the callback once per each
63 block, the application should be to process all of the blocks to be able to process the response.
65 The following is an example of a very simple response handling function:
[all …]

123456789