Home
last modified time | relevance | path

Searched +full:response +full:- +full:timeout (Results 1 – 25 of 273) sorted by relevance

1234567891011

/Zephyr-latest/subsys/mgmt/hawkbit/
Dhawkbit_autohandler.c4 * SPDX-License-Identifier: Apache-2.0
26 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()
86 enum hawkbit_response hawkbit_autohandler_wait(uint32_t events, k_timeout_t timeout) in hawkbit_autohandler_wait() argument
88 uint32_t ret = k_event_wait(&hawkbit_autohandler_event, events, false, timeout); in hawkbit_autohandler_wait()
103 int hawkbit_autohandler_set_delay(k_timeout_t timeout, bool if_bigger) in hawkbit_autohandler_set_delay() argument
105 if (!if_bigger || timeout.ticks > k_work_delayable_remaining_get(&hawkbit_work_handle)) { in hawkbit_autohandler_set_delay()
108 (uint32_t)(timeout.ticks / CONFIG_SYS_CLOCK_TICKS_PER_SEC) / 3600, in hawkbit_autohandler_set_delay()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
33 struct mcumgr_image_upload response; in ZTEST() local
41 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
42 /* Start upload and test Timeout */ in ZTEST()
43 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
44 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", 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()
49 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
51 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Drpr_cli.h4 * SPDX-License-Identifier: Apache-2.0
43 /** Scan status response */
52 uint8_t timeout; member
86 struct k_work_delayable timeout; member
101 * @param caps Capabilities response buffer.
113 * @param status Scan status response buffer.
137 * @param timeout Scan timeout in seconds. Must be at least 1 second.
140 * @param status Scan status response buffer.
146 const uint8_t uuid[16], uint8_t timeout,
155 * response from the unprovisioned device, if supported. If no UUID is
[all …]
Dod_priv_proxy_cli.h4 * SPDX-License-Identifier: Apache-2.0
17 * @defgroup bt_mesh_od_priv_proxy_cli Bluetooth Mesh On-Demand Private GATT Proxy Client
22 /** On-Demand Private Proxy Client Model Context */
30 /** @brief Optional callback for On-Demand Private Proxy Status messages.
32 * Handles received On-Demand Private Proxy Status messages from a On-Demand Private Proxy
33 * server.The @c state param represents state of On-Demand Private Proxy server.
35 * @param cli On-Demand Private Proxy client that received the status message.
43 * @brief On-Demand Private Proxy Client model composition data entry.
50 /** @brief Get the target's On-Demand Private GATT Proxy state.
53 * This way the method will not wait for response and will
[all …]
Dsar_cfg_cli.h4 * SPDX-License-Identifier: Apache-2.0
35 /* Synchronous message timeout in milliseconds. */
36 int32_t timeout; member
57 * @param rsp Status response parameter.
69 * @param rsp Status response parameter.
81 * @param rsp Status response parameter.
93 * @param rsp Status response parameter.
101 /** @brief Get the current transmission timeout value.
103 * @return The configured transmission timeout in milliseconds.
107 /** @brief Set the transmission timeout value.
[all …]
Dsol_pdu_rpl_cli.h4 * SPDX-License-Identifier: Apache-2.0
56 * @p len_rsp as NULL. This way the method will not wait for response and will
59 * To process the response arguments of an async method, register
66 * @param start_rsp Range start response buffer.
67 * @param len_rsp Range length response buffer.
87 /** @brief Set the transmission timeout value.
89 * @param timeout The new transmission timeout in milliseconds.
91 void bt_mesh_sol_pdu_rpl_cli_timeout_set(int32_t timeout);
Dbrg_cfg_cli.h4 * SPDX-License-Identifier: Apache-2.0
66 * @param rsp Response received from the Bridging Configuration Server.
78 * @param rsp Response received from the Bridging Configuration Server.
90 * @param rsp Response received from the Bridging Configuration Server.
113 * or not. The function expects a Subnet Bridge Status message as a response
117 * way the method will not wait for response and will return immediately after
122 * @param status Status response parameter, returns one of
137 * Status message as a response from the destination node.
140 * way the method will not wait for response and will return immediately after
148 * @param status Status response parameter, returns one of
[all …]
Dhealth_cli.h8 * SPDX-License-Identifier: Apache-2.0
129 &(cli_data)->pub, cli_data, &bt_mesh_health_cli_cb)
135 * will not wait for response and will return immediately after
138 * To process the response arguments of an async method, register
147 * @param test_id Test ID response buffer.
148 * @param faults Fault array response buffer.
149 * @param fault_count Fault count response buffer.
161 * will not wait for response and will return immediately after
164 * To process the response arguments of an async method, register
173 * @param test_id Test ID response buffer.
[all …]
Ddfu_cli.h4 * SPDX-License-Identifier: Apache-2.0
49 BT_MESH_MODEL_BLOB_CLI(&(_cli)->blob), \
67 /** Metadata status response. */
92 /** Additional response time for the Target nodes, in 10-second increments.
95 * to messages from the Client. The actual timeout will be calculated
99 * timeout = 20 seconds + (10 seconds * timeout_base) + (100 ms * TTL)
103 * configured transfer timeout, the Target node is dropped.
133 * Called when the BLOB transfer is suspended due to response timeout from all Target nodes.
338 * Waits for a response until the procedure timeout expires.
358 * Waits for a response until the procedure timeout expires.
[all …]
/Zephyr-latest/dts/bindings/sdhc/
Dnxp,lpc-sdif.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,lpc-sdif"
8 include: [sdhc.yaml, pinctrl-device.yaml]
14 data-timeout:
18 Data timeout, as multiple of the SD clock. See DATA_TIMEOUT field of SDIF.
21 response-timeout:
25 Response timeout, as multiple of the SD clock. See RESPONSE_TIMEOUT field
26 of SDIF. Default value is the maximum possible timeout
28 cd-debounce-clocks:
35 pinctrl-0:
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_dw.h1 /* SPDX-License-Identifier: Apache-2.0 */
19 * and programmed based on user-defined options.
48 * Response mode
57 * by the time a second timeout occurs then generate a system reset
82 * Timeout Range Register
104 * Timeout period
109 * Timeout period for initialization
116 * bits WDT_CNT_WIDTH - 1 to 0
155 * Upper limit of Timeout Period parameters
163 * Upper limit of Initial Timeout Period parameters
[all …]
/Zephyr-latest/modules/hal_nordic/nrf_802154/serialization/platform/
Dnrf_802154_spinel_response_notifier.c2 * Copyright (c) 2020 - 2021 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
52 * Only one thread can await response. in nrf_802154_spinel_response_notifier_lock_before_request()
57 LOG_DBG("Locking response notifier"); in nrf_802154_spinel_response_notifier_lock_before_request()
68 uint32_t timeout) in nrf_802154_spinel_response_notifier_property_await() argument
74 if (timeout == 0) { in nrf_802154_spinel_response_notifier_property_await()
76 } else if (timeout == SPINEL_RESPONSE_NOTIFIER_INF_TIMEOUT) { in nrf_802154_spinel_response_notifier_property_await()
79 k_timeout = K_MSEC(timeout); in nrf_802154_spinel_response_notifier_property_await()
85 LOG_ERR("No response within timeout %u", timeout); in nrf_802154_spinel_response_notifier_property_await()
102 LOG_DBG("Unlocking response notifier"); in nrf_802154_spinel_response_notifier_free()
[all …]
/Zephyr-latest/subsys/sip_svc/
Dsip_svc_agilex_mailbox_shell.c2 * Copyright (c) 2022-2023, Intel Corporation.
4 * SPDX-License-Identifier: Apache-2.0
40 return -ENODEV; in cmd_reg()
47 err = -1; in cmd_reg()
82 k_timeout_t timeout = K_MSEC(MAX_TIMEOUT_MSECS); in cmd_open() local
94 return -ERANGE; in cmd_open()
96 return -errno; in cmd_open()
98 timeout = K_MSEC(mseconds); in cmd_open()
100 timeout = K_MSEC(MAX_TIMEOUT_MSECS); in cmd_open()
101 shell_error(sh, "Setting timeout value to %lu milliseconds", in cmd_open()
[all …]
/Zephyr-latest/include/zephyr/net/
Dsntp.h5 * SPDX-License-Identifier: Apache-2.0
75 * @param timeout Timeout of waiting for sntp response (in milliseconds).
79 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
81 int sntp_query(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts);
84 * @brief Attempt to receive an SNTP response after issuing a query
87 * @param timeout Timeout of waiting for sntp response (in milliseconds).
91 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
93 int sntp_recv_response(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts);
103 * @brief Convenience function to query SNTP in one-shot fashion
109 * @param timeout Query timeout
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dmsg.h4 * SPDX-License-Identifier: Apache-2.0
17 * @retval -ENOTSUP A message context was not provided and publishing is not supported.
18 * @retval -EADDRNOTAVAIL A message context was not provided and publishing is not configured.
19 * @retval -EAGAIN The device has not been provisioned.
25 * Message response context.
31 int32_t timeout; /**< Response timeout in milliseconds. */ member
39 * If a response context is provided, the call blocks for the time specified in
40 * the response context, or until @ref bt_mesh_msg_ack_ctx_rx is called.
45 * @param rsp Message response context, or NULL if no response is expected.
48 * @retval -EBUSY A blocking request is already in progress.
[all …]
/Zephyr-latest/drivers/modem/
Dmodem_cmd_handler.h4 * Text-based command handler implementation for modem context driver.
10 * SPDX-License-Identifier: Apache-2.0
30 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
40 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
52 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
173 * @param sem: wait for response semaphore
174 * @param timeout: timeout of command
183 struct k_sem *sem, k_timeout_t timeout, int flags);
193 * @param sem: wait for response semaphore
194 * @param timeout: timeout of command
[all …]
DKconfig.at_shell2 # SPDX-License-Identifier: Apache-2.0
21 int "Timeout waiting for response to AT command in seconds"
29 int "Maximum size of AT response"
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/
Dleshan.py7 SPDX-License-Identifier: Apache-2.0
25 self.timeout = 10
37 def handle_response(resp: requests.models.Response): argument
39 Handle the response received from the server.
42 - response: The response object received from the server.
45 - dict: The parsed JSON response as a dictionary.
48 - Exception: If the response indicates an error condition.
59 params = {'timeout': self.timeout}
62 resp = self._s.get(f'{self.api_url}{path}', params=params, timeout=self.timeout)
67 …lf._s.put(f'{self.api_url}{path}', data=data, headers=headers, params=params, timeout=self.timeout)
[all …]
/Zephyr-latest/samples/net/cellular_modem/server/
Dte_udp_receive.py2 # SPDX-License-Identifier: Apache-2.0
11 def __init__(self, address, timeout = 1): argument
14 self.timeout = timeout
30 if (time.monotonic() - self.last_packet_received_at) > self.timeout:
34 def _validate_packet_(self, data: bytes) -> bool:
70 print(f'udp received {len(data)} bytes -> {address[0]}:{address[1]}')
81 def _get_session_by_address_(self, address) -> TEUDPReceiveSession:
90 return self.sessions[-1]
101 response = bytes([result[0], result[1]])
103 print(f'Sending result {response} to address {session.get_address()}')
[all …]
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c4 * SPDX-License-Identifier: Apache-2.0
55 /* This URL is parsed in-place, so buffer must be non-const. */
60 …"http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/hd-media/vmlinu…
74 #define SSTRLEN(s) (sizeof(s) - 1)
75 #define CHECK(r) { if (r == -1) { printf("Error: " #r "\n"); exit(1); } }
80 static char response[1024]; variable
90 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
91 ai->ai_addr->sa_family, in dump_addrinfo()
92 ((struct sockaddr_in *)ai->ai_addr)->sin_port); in dump_addrinfo()
109 len -= out_len; in sendall()
[all …]
/Zephyr-latest/include/zephyr/modem/
Dubx.h4 * SPDX-License-Identifier: Apache-2.0
43 #define UBX_FRM_CHECKSUM_STOP_IDX(frame_len) (frame_len - 2)
60 struct ubx_frame *response; member
64 k_timeout_t timeout; member
126 * @brief Writes the ubx frame in script.request and reads back its response (if available)
128 * 1. The device sends back a UBX-ACK frame to denote 'acknowledge' and 'not-acknowledge'.
129 * Note: the message id of UBX-ACK frame determines whether the device acknowledged.
130 * Ex: when we send a UBX-CFG frame, the device responds with a UBX-ACK frame.
134 * This response (if received) is written to script.response.
136 * This function writes the ubx frame in script.request then reads back it's response.
[all …]
/Zephyr-latest/include/zephyr/net/http/
Dclient.h10 * SPDX-License-Identifier: Apache-2.0
93 * @param rsp HTTP response information
103 * HTTP response from the server.
109 /** User provided HTTP response callback which is
110 * called when a response is received to a sent HTTP
119 * |←-------- body_frag_len ---------→|
120 * |←--------------------- data len --------------------→|
121 * ---------------------------------------------------------------
123 * ---------------------------------------------------------------
131 * |←------------------ body_frag_len ------------------→|
[all …]
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/
DKconfig1 # Copyright (c) 2016-2023 Nordic Semiconductor ASA
2 # SPDX-License-Identifier: Apache-2.0
5 module-str = nRF USBD common
18 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/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_uart.c4 * SPDX-License-Identifier: Apache-2.0
30 * receive host request. Once the response is sent, the current state is
52 * Once host task is ready with the response bytes, the current state is
59 * state and after timeout all the bytes are dropped.
82 if (r->prtcl_ver != 3) { in request_expected_size()
87 if (r->reserved) { in request_expected_size()
91 return sizeof(*r) + r->data_len; in request_expected_size()
103 /* Timeout after receiving first byte */
107 * Max data size for a version 3 request/response packet. This is big enough
108 * to handle a request/response header, flash write offset/size and 512 bytes
[all …]
/Zephyr-latest/samples/net/sockets/http_client/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
46 net_sin(addr)->sin_family = AF_INET; in setup_socket()
47 net_sin(addr)->sin_port = htons(port); in setup_socket()
48 inet_pton(family, server, &net_sin(addr)->sin_addr); in setup_socket()
50 net_sin6(addr)->sin6_family = AF_INET6; in setup_socket()
51 net_sin6(addr)->sin6_port = htons(port); in setup_socket()
52 inet_pton(family, server, &net_sin6(addr)->sin6_addr); in setup_socket()
66 family_str, -errno); in setup_socket()
67 ret = -errno; in setup_socket()
75 "option (%d)", family_str, -errno); in setup_socket()
[all …]

1234567891011