/Zephyr-latest/dts/bindings/input/ |
D | gpio-keys.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 is defined in a child node of the gpio-keys node and defines a specific key 13 #include <zephyr/dt-bindings/input/input-event-codes.h> 17 compatible = "gpio-keys"; 26 compatible: "gpio-keys" 31 debounce-interval-ms: 38 polling-mode: 42 specified debounce-interval-ms instead. 44 no-disconnect: 47 Do not try to disconnect the pin on suspend. Can be used if the GPIO [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | binary_adapter_test.py | 3 # SPDX-License-Identifier: Apache-2.0 25 def script_path(resources: Path) -> str: 30 def fixture_device_adapter(tmp_path: Path) -> Generator[NativeSimulatorAdapter, None, None]: 43 ) -> Generator[NativeSimulatorAdapter, None, None]: 52 def test_if_binary_adapter_runs_without_errors(launched_device: NativeSimulatorAdapter) -> None: 64 assert file_lines[-2:] == lines[-2:] 69 ) -> None: 70 …"""Test if thread finishes after timeout when there is no data on stdout, but subprocess is still … 72 device.command = ['python3', script_path, '--long-sleep', '--sleep=5'] 84 def test_if_binary_adapter_raises_exception_empty_command(device: NativeSimulatorAdapter) -> None: [all …]
|
/Zephyr-latest/tests/boot/with_mcumgr/pytest/ |
D | test_upgrade.py | 3 # SPDX-License-Identifier: Apache-2.0 18 def create_signed_image(build_dir: Path, app_build_dir: Path, version: str) -> Path: 35 def clear_buffer(dut: DeviceAdapter) -> None: 36 disconnect = False 39 disconnect = True 41 if disconnect: 42 dut.disconnect() 63 dut.disconnect() 80 dut.disconnect() 118 dut.disconnect() [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/ |
D | device_adapter.py | 3 # SPDX-License-Identifier: Apache-2.0 35 def __init__(self, device_config: DeviceConfig) -> None: 51 def __repr__(self) -> str: 55 def env(self) -> dict[str, str]: 59 def launch(self) -> None: 61 Start by closing previously running application (no effect if not 85 # Retry for up to 10 seconds for USB-CDC based devices to enumerate. 94 def close(self) -> None: 95 """Disconnect, close device and close reader thread.""" 99 self.disconnect() [all …]
|
/Zephyr-latest/tests/boards/espressif/wifi/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 4 mainmenu "Wi-Fi Test" 9 bool "Enable Wi-Fi test" 15 string "Wi-Fi Test SSID" 18 This option sets the SSID of the Wi-Fi network for testing. 19 It allows you to specify the Wi-Fi SSID that the device will 23 string "Wi-Fi Test PSK" 26 This option sets the Pre-Shared Key (PSK) for the Wi-Fi network 33 Option to use WPA2 Security for Wi-Fi connections. 39 Option to use WPA3 Security for Wi-Fi connections. [all …]
|
/Zephyr-latest/tests/bluetooth/common/testlib/include/testlib/ |
D | conn.h | 2 * SPDX-License-Identifier: Apache-2.0 14 * Thread-safe: 37 * @retval -errno @ref bt_conn_le_create error. No connection object 46 * @brief Disconnect, wait and dispose of reference. 48 * The disconnect reason for a normal disconnect should be @ref 51 * The following disconnect reasons are allowed: 53 * - @ref BT_HCI_ERR_AUTH_FAIL 54 * - @ref BT_HCI_ERR_REMOTE_USER_TERM_CONN 55 * - @ref BT_HCI_ERR_REMOTE_LOW_RESOURCES 56 * - @ref BT_HCI_ERR_REMOTE_POWER_OFF [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | st,lis2dh-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the int1-gpio-config/int2-gpio-config and anym-mode properties 9 #include <zephyr/dt-bindings/sensor/lis2dh.h> 14 int1-gpio-config = <LIS2DH_DT_GPIO_INT_LEVEL_LOW>; 15 int2-gpio-config = <LIS2DH_DT_GPIO_INT_LEVEL_LOW>; 16 anym-mode = <LIS2DH_DT_ANYM_6D_POSITION>; 19 include: sensor-device.yaml 22 irq-gpios: 23 type: phandle-array 26 are active-high as produced by the sensor. [all …]
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | canopen_program.py | 3 # SPDX-License-Identifier: Apache-2.0 5 '''Runner for performing program download over CANopen (DSP 302-3).''' 20 # Default Python-CAN context to use, see python-can documentation for details 50 setattr(namespace, self.dest, not option_string.startswith('--no-')) 53 '''Runner front-end for CANopen.''' 89 def dev_id_help(cls) -> str: 95 parser.add_argument('--node-id', dest='dev_id', 98 parser.add_argument('--can-context', default=DEFAULT_CAN_CONTEXT, 99 help=f'Python-CAN context to use (default: {DEFAULT_CAN_CONTEXT})') 100 parser.add_argument('--program-number', type=int, default=DEFAULT_PROGRAM_NUMBER, [all …]
|
/Zephyr-latest/tests/net/conn_mgr_conn/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 30 return binding->ctx; in conn_mgr_if_get_data() 36 * @param iface - iface to reset. 44 /* Some tests can leave the iface in a bad state where it is admin-down but not dormant */ in reset_test_iface_networking() 51 * @param iface - iface to reset. 63 iface_binding->flags = 0; in reset_test_iface_state() 64 iface_binding->timeout = CONN_MGR_IF_NO_TIMEOUT; in reset_test_iface_state() 66 /* Disable auto-connect and auto-down */ in reset_test_iface_state() 72 iface_data->call_cnt_a = 0; in reset_test_iface_state() 73 iface_data->call_cnt_b = 0; in reset_test_iface_state() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 186 s->rx++; in notified() 187 LOG_DBG("peripheral RX: %d", s->rx); in notified() 278 static int disconnect(struct bt_conn *conn) in disconnect() function 283 return -ENOTCONN; in disconnect() 299 * Verifies that there is no host RX buffer leak due to disconnections. in entrypoint_dut() 315 * - no buffer allocation failures, timeouts or stalls. in entrypoint_dut() 322 s->rx = 0; in entrypoint_dut() 328 s->conn = connect_and_subscribe(); in entrypoint_dut() 333 while (s->rx < NUM_NOTIFICATIONS) { in entrypoint_dut() [all …]
|
/Zephyr-latest/tests/boards/espressif/wifi/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 42 const struct wifi_scan_result *entry = (const struct wifi_scan_result *)cb->info; in wifi_scan_result() 49 printk("\n%-4s | %-32s %-5s | %-13s | %-4s | %-15s | %-17s | %-8s\n", "Num", "SSID", in wifi_scan_result() 53 strncpy(ssid_print, entry->ssid, sizeof(ssid_print) - 1); in wifi_scan_result() 54 ssid_print[sizeof(ssid_print) - 1] = '\0'; in wifi_scan_result() 56 printk("%-4d | %-32s %-5u | %-4u (%-6s) | %-4d | %-15s | %-17s | %-8s\n", in wifi_scan_result() 57 wifi_ctx.scan_result, ssid_print, entry->ssid_length, entry->channel, in wifi_scan_result() 58 wifi_band_txt(entry->band), entry->rssi, wifi_security_txt(entry->security), in wifi_scan_result() 59 ((entry->mac_length) ? net_sprint_ll_addr_buf(entry->mac, WIFI_MAC_ADDR_LEN, in wifi_scan_result() 62 wifi_mfp_txt(entry->mfp)); in wifi_scan_result() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/api/ |
D | l2cap.rst | 6 L2CAP layer enables connection-oriented channels which can be enable with the 25 it may block if no credits are available, and resuming as soon as more credits 36 Note that the later can also disconnect channel instances created by servers.
|
/Zephyr-latest/tests/bsim/bluetooth/host/security/ccc_update/src/ |
D | central.c | 2 * SPDX-License-Identifier: Apache-2.0 190 static void disconnect(void) in disconnect() function 273 /* wait for server to check that the subscription no longer exist */ in connect_restore_sec() 341 disconnect(); in run_central() 343 /* tell the bad client that we disconnected and wait for him to disconnect */ in run_central() 348 disconnect(); in run_central() 364 /* wait for good central to disconnect from server */ in run_bad_central() 382 disconnect(); in run_bad_central()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | pacs_notify_server_test.c | 4 * SPDX-License-Identifier: Apache-2.0 55 LOG_DBG("No BT_UUID_PACS_SNK attribute found"); in is_peer_subscribed() 63 LOG_DBG("No BT_UUID_PACS_SNK_LOC attribute found"); in is_peer_subscribed() 71 LOG_DBG("No BT_UUID_PACS_SRC attribute found"); in is_peer_subscribed() 79 LOG_DBG("No BT_UUID_PACS_SRC_LOC attribute found"); in is_peer_subscribed() 87 LOG_DBG("No BT_UUID_PACS_AVAILABLE_CONTEXT attribute found"); in is_peer_subscribed() 95 LOG_DBG("No BT_UUID_PACS_SUPPORTED_CONTEXT attribute found"); in is_peer_subscribed() 213 /* Now wait for client to disconnect, then stop adv so it does not reconnect */ in test_main() 214 LOG_DBG("Wait for client disconnect"); in test_main()
|
D | csip_notify_server_test.c | 4 * SPDX-License-Identifier: Apache-2.0 34 printk("No BT_UUID_PACS_SNK attribute found\n"); in is_peer_subscribed() 103 /* Now wait for client to disconnect, then stop adv so it does not reconnect */ in test_main() 104 printk("Wait for client disconnect\n"); in test_main()
|
/Zephyr-latest/tests/kernel/interrupt/src/ |
D | dynamic_shared_irq.c | 4 * SPDX-License-Identifier: Apache-2.0 32 /* note: no need to check the state of the SW ISR tables after in dynamic_shared_irq_suite_after() 33 * all these disconnect operations. If there's something wrong in dynamic_shared_irq_suite_after() 55 for (i = start; i <= CONFIG_GEN_IRQ_START_VECTOR + CONFIG_NUM_IRQS - 1; i++) { in get_irq_slot() 56 table_idx = i - CONFIG_GEN_IRQ_START_VECTOR; in get_irq_slot() 88 "no suitable value found for irq1"); in dynamic_shared_irq_suite_setup() 91 "no suitable value found for irq2"); in dynamic_shared_irq_suite_setup() 94 fixture.irq1_table_idx = fixture.irq1 - CONFIG_GEN_IRQ_START_VECTOR; in dynamic_shared_irq_suite_setup() 95 fixture.irq2_table_idx = fixture.irq2 - CONFIG_GEN_IRQ_START_VECTOR; in dynamic_shared_irq_suite_setup() 184 * @brief Test writing to a vector after an ISR/arg disconnect.
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/dut/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 70 info->tx_max_len, in data_len_updated() 71 info->rx_max_len); in data_len_updated() 139 /* No security support on the tinyhost unfortunately */ in connect() 165 params->value_handle); in notified() 224 LOG_DBG("Test start: ATT disconnect protocol"); in test_procedure_0() 233 * gracefully, especially in the case of a disconnect while waiting. in test_procedure_0() 238 * - connect ACL, DUT is central and GATT client in test_procedure_0() 239 * - update data length (tinyhost doens't have recombination) in test_procedure_0() 240 * - dut: subscribe to NOTIFY on tester CHRC in test_procedure_0() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | wifi_mgmt.h | 6 * SPDX-License-Identifier: Apache-2.0 66 /** @brief Wi-Fi management commands */ 68 /** Scan for Wi-Fi networks */ 70 /** Connect to a Wi-Fi network */ 72 /** Disconnect from a Wi-Fi network */ 100 /** Set or get Wi-Fi channel for Monitor or TX-Injection mode */ 102 /** Disconnect a STA from AP */ 104 /** Get Wi-Fi driver and Firmware versions */ 106 /** Get Wi-Fi latest connection parameters */ 143 /** Request a Wi-Fi scan */ [all …]
|
/Zephyr-latest/tests/net/lib/mqtt/v3_1_1/mqtt_packet/ |
D | README | 2 ----------------- 4 This MQTT application tests the low-level API for packet handling. 5 No network activity is involved in this test, so ** theoretically ** 10 ------------- 16 cmake -DBOARD=qemu_x86 .. 19 * NXP Freedom-K64F (frdm-k64f) 23 cmake -DBOARD=frdm_k64f .. 33 https://developer.mbed.org/platforms/frdm-k64f/ 36 ------------- 40 tc_start() - MQTT Library test [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_native_ptty_bottom.c | 5 * SPDX-License-Identifier: Apache-2.0 37 * @retval -1 If no character was available to read 38 * @retval -2 if the stdin is disconnected 47 return -2; in np_uart_stdin_poll_in_bottom() 50 int n = -1; in np_uart_stdin_poll_in_bottom() 62 return -1; in np_uart_stdin_poll_in_bottom() 63 } else if (ready == -1) { in np_uart_stdin_poll_in_bottom() 68 if ((n == -1) || (n == 0)) { in np_uart_stdin_poll_in_bottom() 69 return -1; in np_uart_stdin_poll_in_bottom() 89 if (ret == -1) { in np_uart_slave_connected() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/classic/shell/ |
D | rfcomm.c | 10 * SPDX-License-Identifier: Apache-2.0 104 shell_print(ctx_shell, "Incoming data dlc %p len %u", dlci, buf->len); in rfcomm_recv() 133 shell_error(ctx_shell, "No channels available"); in rfcomm_accept() 134 return -ENOMEM; in rfcomm_accept() 152 return -ENOEXEC; in cmd_register() 161 return -ENOEXEC; in cmd_register() 178 return -ENOEXEC; in cmd_connect() 196 uint8_t buf_data[DATA_MTU] = { [0 ... (DATA_MTU - 1)] = 0xff }; in cmd_send() 204 while (count--) { in cmd_send() 207 len = MIN(rfcomm_dlc.mtu, net_buf_tailroom(buf) - 1); in cmd_send() [all …]
|
/Zephyr-latest/tests/net/conn_mgr_monitor/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 32 /* Time to wait for IPv6 DAD-gated events to finish. 50 /* IP addresses -- Two of each are needed because address sharing will cause address removal to 77 /* DAD adds the link-local address automatically. Check for it, and remove it if present. */ in reset_test_iface() 86 /* Thread-safe test statistics */ 94 int dconn_count_ipv4; /* disconnect */ 99 int dconn_count_ipv6; /* disconnect */ 104 int dconn_count_gen; /* disconnect */ 106 /** The iface blamed for the last disconnect event */ 149 * @return struct test_stats -- The copy of the global test stats struct before it was reset [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | cm.c | 4 * SPDX-License-Identifier: Apache-2.0 77 /* No matches found, it's invalid. */ in flag_name() 89 /* Verify that a provided string consists only of the characters 0-9*/ 134 target->iface = net_if_get_by_index(iface_index); in parse_ifi_target() 136 if (target->iface == NULL) { in parse_ifi_target() 142 target->type = CM_TARG_IFACE; in parse_ifi_target() 146 target->type = CM_TARG_INVALID; in parse_ifi_target() 147 return -EINVAL; in parse_ifi_target() 163 target->iface = net_if_get_by_index(net_if_get_by_name(arg)); in parse_if_target() 165 if (target->iface == NULL) { in parse_if_target() [all …]
|
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | usbc_tc.h | 3 * SPDX-License-Identifier: Apache-2.0 8 * @brief USB Type-C Cable and Connector API used for USB-C drivers 10 * The information in this file was taken from the USB Type-C 18 * @brief USB Type-C 19 * @defgroup usb_type_c USB Type-C 31 * @brief VBUS minimum for a sink disconnect detection. 32 * See Table 4-3 VBUS Sink Characteristics 37 * @brief VBUS maximum for a sink disconnect detection. 38 * See Table 4-3 VBUS Sink Characteristics 45 * See Table 4-29 VBUS and VCONN Timing Parameters [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/open_close/src/ |
D | main.c | 2 * SPDX-License-Identifier: Apache-2.0 47 LOG_DBG("============================> trigger disconnect"); in read_mtu_validation_chrc() 117 LOG_DBG("<------------------------- read done: err %d", err); in gatt_read_cb() 119 outstanding--; in gatt_read_cb() 169 /* Test purpose: verify no allocated resource leaks when disconnecting in a_test_iteration() 170 * abruptly with non-empty queues. in a_test_iteration() 173 * - open channels in a_test_iteration() 174 * - queue up lots of ATT bufs from both sides in a_test_iteration() 175 * - disconnect ACL in a_test_iteration() 176 * - see if anything stalls or leaks in a_test_iteration() [all …]
|