/Zephyr-latest/doc/connectivity/networking/api/ |
D | zperf.rst | 20 .. code-block:: console 25 in Zephyr. See :zephyr:code-sample:`zperf sample application <zperf>` for details. 33 .. code-block:: console 35 $ iperf -s -l 1K -u -V -B 2001:db8::2 39 .. code-block:: console 41 $ iperf -s -l 1K -V -B 2001:db8::2 46 .. code-block:: console 48 zperf udp upload 2001:db8::2 5001 10 1K 1M 53 .. code-block:: console 55 zperf tcp upload 2001:db8::2 5001 10 1K 1M [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | cap.rst | 9 The Acceptor will typically be a resource-constrained device, such as a headset, earbud or hearing 16 When the Bluetooth stack has been initialized (:code:`bt init`), the Acceptor can be registered by 17 calling :code:`cap_acceptor init`, which will register the CAS and CSIS services, as well as 20 .. code-block:: console 23 cap_acceptor --help 24 cap_acceptor - Bluetooth CAP acceptor shell commands 27 [rank <int>] [not-lockable] [sirk <data>] 39 ------------------ 42 :code:`bt adv-data` or :code:`bt advertise` must be called again to set the new advertising data. 43 If :code:`CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE` is enabled, this will also notify connected [all …]
|
D | bap_broadcast_assistant.rst | 21 When the Bluetooth stack has been initialized (:code:`bt init`), 23 the connected device calling :code:`bap_broadcast_assistant discover`, which 27 .. code-block:: console 29 uart:~$ bap_broadcast_assistant --help 30 bap_broadcast_assistant - Bluetooth BAP broadcast assistant client shell 45 broadcast_code : Send a string-based broadcast code of up to 16 bytes 46 <src_id> <broadcast code> 56 .. code-block:: console 66 -------------------------------------------------------- 73 .. code-block:: console [all …]
|
D | csip.rst | 12 The client will typically be a resource-rich device, such as a smartphone 19 :code:`BT_MAX_CONN` shall be at least 3. 23 set members, make sure that :code:`BT_MAX_PAIRED` is correctly configured. 28 When the Bluetooth stack has been initialized (:code:`bt init`), 30 initialized by calling :code:`csip_set_coordinator init`, which will start a discovery 43 .. code-block:: console 45 csip_set_coordinator --help 46 csip_set_coordinator - Bluetooth CSIP_SET_COORDINATOR shell commands 63 ----- 65 .. code-block:: console [all …]
|
D | bap.rst | 9 - Capabilities and Endpoint discovery 10 - Audio Stream Endpoint procedures 15 .. code-block:: console 17 bap --help 28 [bcode <broadcast code> || bcode_str <broadcast code 58 [lang <ISO 639-3 lang>] 74 .. csv-table:: State Machine Transitions 80 "config","discover","idle/codec-configured/qos-configured","codec-configured" 81 "qos","config","codec-configured/qos-configured","qos-configured" 82 "enable","qos","qos-configured","enabling" [all …]
|
/Zephyr-latest/tests/subsys/input/longpress/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 27 TC_PRINT("%s: %d %x %d\n", __func__, event_count, evt->code, evt->value); in test_cb() 30 memcpy(&last_events[1], &last_events[0], sizeof(struct input_event)); in test_cb() 39 TC_PRINT("%s: %d %x %d\n", __func__, event_count_no_short, evt->code, evt->value); in test_cb_no_short() 42 memcpy(&last_events_no_short[1], &last_events_no_short[0], sizeof(struct input_event)); in test_cb_no_short() 52 input_report_key(fake_dev, INPUT_KEY_3, 1, true, K_FOREVER); in ZTEST() 56 input_report_abs(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST() 62 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST() 66 zassert_equal(last_events[1].type, INPUT_EV_KEY); in ZTEST() 67 zassert_equal(last_events[1].code, INPUT_KEY_A); in ZTEST() [all …]
|
/Zephyr-latest/dts/bindings/input/ |
D | zephyr,input-longpress.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Input longpress pseudo-device 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 19 compatible = "zephyr,input-longpress"; 20 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>; 21 short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>; 22 long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>; 23 long-delay-ms = <1000>; 29 input event: dev=buttons SYN type= 1 code= 11 value=1 # INPUT_KEY_0 press 31 input event: dev=buttons SYN type= 1 code= 11 value=0 # INPUT_KEY_0 release [all …]
|
/Zephyr-latest/samples/shields/npm6001_ek/doc/ |
D | index.rst | 1 .. zephyr:code-sample:: npm6001_ek 13 - Regulators (BUCK0/1/2/3 and LDO0/1) 14 - GPIO 15 - Watchdog 24 :alt: nRF52840DK + nPM6001-EK wiring example 27 nRF52840DK + nPM6001-EK wiring example 35 .. zephyr-app-commands:: 36 :zephyr-app: samples/shields/npm6001_ek 49 the regulators embedded in the PMIC (BUCK0/1/2/3 and LDO0/1). Below you can 52 .. code-block:: bash [all …]
|
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/ |
D | README.rst | 1 .. zephyr:code-sample:: modbus-gateway 2 :name: Modbus TCP-to-serial gateway 3 :relevant-api: modbus bsd_sockets 5 Implement a gateway between an Ethernet TCP-IP network and a Modbus serial line. 11 an Ethernet TCP-IP network and a Modbus serial line. 16 This sample has been tested with FRDM-K64F board, 21 :zephyr:code-sample:`modbus-rtu-server` sample. Client is running on a PC or laptop. 26 In addition to the evaluation boards RS-485 shields may be used. 27 The A+, B- lines of the RS-485 shields should be connected together. 38 .. zephyr-app-commands:: [all …]
|
/Zephyr-latest/samples/subsys/modbus/tcp_server/ |
D | README.rst | 1 .. zephyr:code-sample:: modbus-tcp-server 3 :relevant-api: modbus bsd_sockets 16 This sample has been tested with FRDM-K64F board, 34 .. zephyr-app-commands:: 35 :zephyr-app: samples/subsys/modbus/tcp_server 43 .. code-block:: console 45 # pymodbus.console tcp --host 192.0.2.1 --port 502 50 .. code-block:: console 53 > client.write_coil address=0 value=1 slave=1 57 .. code-block:: console [all …]
|
/Zephyr-latest/include/zephyr/input/ |
D | input_hid.h | 4 * SPDX-License-Identifier: Apache-2.0 16 * @brief Convert an input code to HID code. 18 * Takes an input code as input and returns the corresponding HID code as 19 * output. The return value is -1 if the code is not found, if found it can 22 * @param input_code Event code (see @ref INPUT_KEY_CODES). 23 * @retval the HID code corresponding to the input code. 24 * @retval -1 if there's no HID code for the specified input code. 29 * @brief Convert an input code to HID modifier. 31 * Takes an input code as input and returns the corresponding HID modifier as 34 * @param input_code Event code (see @ref INPUT_KEY_CODES). [all …]
|
/Zephyr-latest/samples/subsys/usb/hid-mouse/ |
D | README.rst | 1 .. zephyr:code-sample:: usb-hid-mouse 3 :relevant-api: _usb_device_core_api usb_hid_device_api input_interface 13 the number of buttons on the board) a right mouse button, X-axis movement, 14 and Y-axis movement. 17 This sample can be found under :zephyr_file:`samples/subsys/usb/hid-mouse` in the 24 There must be a :dtcompatible:`gpio-keys` group of buttons or keys defined at 30 - ``INPUT_KEY_0``: left button 31 - ``INPUT_KEY_1``: right button 32 - ``INPUT_KEY_2``: move the mouse along the x-axis 33 - ``INPUT_KEY_3``: move the mouse along the y-axis [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_delete/src/ |
D | test_suite_invalid_inputs.c | 4 * SPDX-License-Identifier: Apache-2.0 26 * - BT_ID_DEFAULT value is used for the ID 29 * - '-EINVAL' error code is returned representing invalid values were used. 37 zassert_true(err == -EINVAL, "Unexpected error code '%d' was returned", err); in ZTEST() 44 * - bt_dev.id_count is greater than 0 45 * - ID value used is equal to bt_dev.id_count 48 * - '-EINVAL' error code is returned representing invalid values were used. 54 bt_dev.id_count = 1; in ZTEST() 58 zassert_true(err == -EINVAL, "Unexpected error code '%d' was returned", err); in ZTEST() 62 * Test deleting ID that corresponds to a zero-filled item [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/classic/ |
D | a2dp.rst | 4 The :code:`a2dp` command exposes parts of the A2DP API. 9 * Source and Sink sides register a2dp callbacks. using :code:`a2dp register_cb`. 10 …urce and Sink sides register stream endpoints. using :code:`a2dp register_ep source sbc` and :code… 11 …onnection. It will create the AVDTP Signaling and Media L2CAP channels. using :code:`a2dp connect`. 12 …* Source and Sink side can discover remote device's stream endpoints. using :code:`a2dp discover_p… 13 …re the stream to create the stream after discover remote's endpoints. using :code:`a2dp configure`. 14 * Source or Sink establish the stream. using :code:`a2dp establish`. 15 * Source or Sink start the media. using :code:`a2dp start`. 16 * Source test the media sending. using :code:`a2dp send_media` to send one test packet data. 17 * Source or Sink suspend the media. using :code:`a2dp suspend`. [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/host/ |
D | gap.rst | 15 :kconfig:option:`CONFIG_BT_ID_MAX`. To create a new identity, use :code:`bt id-create` command. You 16 can then use it by selecting it with its ID :code:`bt id-select <id>`. Finally, you can list all the 17 available identities with :code:`id-show`. 22 Start scanning by using the :code:`bt scan on` command. Depending on the environment you're in, you 23 may see a lot of lines printed on the shell. To stop the scan, run :code:`bt scan off`, the 28 .. code-block:: console 32 …[DEVICE]: CB:01:1A:2D:6E:AE (random), AD evt type 0, RSSI -78 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, S… 33 …[DEVICE]: 20:C2:EE:59:85:5B (random), AD evt type 3, RSSI -62 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, S… 34 …[DEVICE]: E3:72:76:87:2F:E8 (random), AD evt type 3, RSSI -74 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, S… 35 …[DEVICE]: 1E:19:25:8A:CB:84 (random), AD evt type 3, RSSI -67 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, S… [all …]
|
/Zephyr-latest/samples/sensor/tdk_apex/ |
D | README.rst | 1 .. zephyr:code-sample:: tdk_apex 3 :relevant-api: sensor_interface 25 …- https://invensense.tdk.com/download-pdf/an-000271-icm-42607x-and-icm-42670x-apex-motion-function… 44 to be aliased as ``tdk-apex-sensorN`` where ``N`` goes from ``0`` to ``9``. For example: 46 .. code-block:: devicetree 50 tdk-apex-sensor0 = &icm42670p; 56 .. code-block:: devicetree 64 .. zephyr-app-commands:: 65 :zephyr-app: samples/sensor/tdk_apex 72 .. code-block:: devicetree [all …]
|
/Zephyr-latest/samples/subsys/usb/cdc_acm/ |
D | README.rst | 1 .. zephyr:code-sample:: usb-cdc-acm 2 :name: USB CDC-ACM 3 :relevant-api: usbd_api _usb_device_core_api uart_interface 5 Use USB CDC-ACM driver to implement a serial port echo. 32 .. zephyr-app-commands:: 33 :zephyr-app: samples/subsys/usb/cdc_acm 44 .. code-block:: console 46 usb 9-1: new full-speed USB device number 112 using uhci_hcd 47 usb 9-1: New USB device found, idVendor=8086, idProduct=f8a1 48 usb 9-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [all …]
|
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/ |
D | README.rst | 1 .. zephyr:code-sample:: sensortile_box_pro_sensors 15 - LPS22DF: ambient temperature and atmospheric pressure 16 - LSM6DSV16X: 6-Axis acceleration and angular velocity 17 - LIS2DU12: 3-Axis acceleration 28 - :zephyr:board:`sensortile_box_pro` 35 .. zephyr-app-commands:: 36 :zephyr-app: samples/boards/st/sensortile_box_pro/sensors-on-board 46 .. code-block:: console 48 $ minicom -D <tty_device> -b 115200 50 Replace :code:`<tty_device>` with the correct device path automatically created on [all …]
|
/Zephyr-latest/doc/connectivity/networking/ |
D | networking_with_multiple_instances.rst | 18 On the Linux Host, find the Zephyr `net-tools`_ project, which can either be 19 found in a Zephyr standard installation under the ``tools/net-tools`` directory 22 .. code-block:: console 24 git clone https://github.com/zephyrproject-rtos/net-tools 31 * Terminal #1 and #2 are terminal windows with net-tools being the current 32 directory (``cd net-tools``) 44 Step 1 - Create configuration files 52 For Zephyr instance #1, create file called ``zephyr1.conf`` to ``net-tools`` 55 .. code-block:: console 58 INTERFACE="$1" [all …]
|
/Zephyr-latest/boards/snps/em_starterkit/ |
D | board.dtsi | 1 /* SPDX-License-Identifier: Apache-2.0 */ 4 #include <zephyr/dt-bindings/input/input-event-codes.h> 23 compatible = "gpio-leds"; 29 gpios = <&gpio1 1 0>; 30 label = "LED 1"; 64 compatible = "gpio-keys"; 69 zephyr,code = <INPUT_KEY_0>; 73 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 74 label = "Push button switch 1"; 75 zephyr,code = <INPUT_KEY_1>; [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_reset/src/ |
D | test_suite_invalid_inputs.c | 4 * SPDX-License-Identifier: Apache-2.0 26 * - BT_ID_DEFAULT value is used for the ID 27 * - Input address is NULL 28 * - Input IRK is NULL 31 * - '-EINVAL' error code is returned representing invalid values were used. 39 zassert_true(err == -EINVAL, "Unexpected error code '%d' was returned", err); in ZTEST() 46 * - bt_dev.id_count is greater than 0 47 * - ID value used is equal to bt_dev.id_count 48 * - Input address is NULL 49 * - Input IRK is NULL [all …]
|
/Zephyr-latest/samples/net/dhcpv4_client/ |
D | README.rst | 1 .. zephyr:code-sample:: dhcpv4-client 3 :relevant-api: dhcpv4 net_mgmt 17 - :ref:`networking_with_host` 31 Here's a sample server configuration file '/etc/kea/kea-dhcp4.conf' 34 .. code-block:: console 38 "interfaces-config": { 40 "dhcp-socket-type": "raw" 43 "valid-lifetime": 7200, 47 "id": 1, 49 "pools": [ { "pool": "192.0.2.10 - 192.0.2.100" } ], [all …]
|
/Zephyr-latest/samples/net/sockets/echo_async_select/ |
D | README.rst | 1 .. zephyr:code-sample:: async-sockets-echo-select 3 :relevant-api: bsd_sockets 12 with non-blocking sockets and a ``select()`` call. This is a variant of 13 the :zephyr:code-sample:`async-sockets-echo` sample. 15 The source code for this sample application can be found at: 21 - :ref:`networking_with_host` 22 - or, a board with hardware networking (including 6LoWPAN) 29 .. zephyr-app-commands:: 30 :zephyr-app: samples/net/sockets/echo_async_select 36 2001:db8::1 (IPv6), port 4242. The easiest way to connect is: [all …]
|
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/ |
D | README.rst | 1 .. zephyr:code-sample:: stwinbx1_sensors 15 - STTS22H: Digital temperature sensor 16 - IIS2MDC: 3-axis magnetometer 17 - ISM330DHCX: IMU, 3D accelerometer and 3D gyroscope with Machine Learning Core and Finite State Ma… 18 - IIS2DLPC: high-performance ultra-low-power 3-axis accelerometer for industrial applications 19 - IIS2ICLX: high-accuracy, high-resolution, low-power, 2-axis digital inclinometer with Machine Lea… 20 - ILPS22QS: ultra-compact piezoresistive absolute pressure sensor 31 - :zephyr:board:`steval_stwinbx1` 38 .. zephyr-app-commands:: 39 :zephyr-app: samples/boards/st/steval_stwinbx1/sensors [all …]
|
/Zephyr-latest/tests/drivers/retained_mem/api/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 14 /* For size-limited tests, use data size of 1 byte */ 15 static uint8_t data[1] = { 18 static uint8_t empty_data[1] = { 21 static uint8_t buffer[1]; 38 zassert_equal(rc, 0, "Return code should be success"); in ZTEST() 43 zassert_equal(rc, 0, "Return code should be success"); in ZTEST() 53 zassume_between_inclusive(rc, 1, 0x4000, "Retained memory size is not valid"); in ZTEST() 61 zassert_equal(rc, 0, "Return code should be success"); in ZTEST() 64 zassert_equal(rc, 0, "Return code should be success"); in ZTEST() [all …]
|