/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 …]
|
D | input.h | 4 * SPDX-License-Identifier: Apache-2.0 11 * @brief Input Interface 12 * @defgroup input_interface Input Interface 21 #include <zephyr/dt-bindings/input/input-event-codes.h> 30 * @brief Input event structure. 32 * This structure represents a single input event, for example a key or button 44 * Event code (see @ref INPUT_KEY_CODES, @ref INPUT_BTN_CODES, 47 uint16_t code; member 53 * @brief Report a new input event. 56 * either synchronously or through the input thread if utilized. [all …]
|
/Zephyr-latest/dts/bindings/input/ |
D | zephyr,lvgl-encoder-input.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 LVGL encoder indev pseudo-device 7 Listens for button/encoder input events and routes the 13 compatible = "zephyr,lvgl-encoder-input"; 14 rotation-input-code = <INPUT_REL_Y>; 15 button-input-code = <INPUT_KEY_0>; 18 compatible: "zephyr,lvgl-encoder-input" 20 include: zephyr,lvgl-common-input.yaml 23 rotation-input-code: 27 Input event code associated with rotation (INPUT_REL_*). [all …]
|
D | zephyr,input-longpress.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Input longpress pseudo-device 7 Listens for key events as an input and produces key events as output 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 18 input = <&buttons>; 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>; [all …]
|
D | futaba,sbus.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 SBUS input driver using 8 SBUS is an single-wire inverted serial protocol so either you need to use 9 the rx-invert feature of your serial driver or use an external signal inverter. 10 The driver binds this to the Zephyr input system using INPUT_EV_CODES. 22 zephyr,code = <INPUT_ABS_RX>; 27 zephyr,code = <INPUT_ABS_RY>; 32 zephyr,code = <INPUT_ABS_X>; 37 zephyr,code = <INPUT_ABS_Y>; 42 zephyr,code = <INPUT_KEY_0>; [all …]
|
D | zephyr,lvgl-button-input.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 LVGL button indev pseudo-device 7 Listens for button input events and routes the 13 compatible = "zephyr,lvgl-button-input"; 14 input = <&buttons>; 15 input-codes = <INPUT_KEY_0 INPUT_KEY_1>; 19 When the device receives an input_event with code INPUT_KEY_0 22 compatible: "zephyr,lvgl-button-input" 24 include: zephyr,lvgl-common-input.yaml 27 input-codes: [all …]
|
D | gpio-keys.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Zephyr Input GPIO KEYS parent node 7 This defines a group of buttons that can generate input events. Each button 8 is defined in a child node of the gpio-keys node and defines a specific key 9 code. 13 #include <zephyr/dt-bindings/input/input-event-codes.h> 17 compatible = "gpio-keys"; 20 zephyr,code = <INPUT_KEY_0>; 26 compatible: "gpio-keys" 31 debounce-interval-ms: [all …]
|
D | espressif,esp32-touch-sensor.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Zephyr input touch sensor parent node 7 This defines a group of touch sensors that can generate input events. Each touch 8 sensor is defined in a child node of the touch-sensor node and defines a specific key 9 code. 13 #include <zephyr/dt-bindings/input/input-event-codes.h> 14 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 17 compatible = "espressif,esp32-touch"; 20 debounce-interval-ms = <30>; 21 href-microvolt = <27000000>; [all …]
|
D | adc-keys.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Input driver for ADC attached resistor ladder buttons. 13 #include <dt-bindings/input/input-event-codes.h> 17 compatible = "adc-keys"; 18 io-channels = <&adc 2>; 19 keyup-threshold-mv = <0>; 22 press-thresholds-mv = <1650>, /* KEY0 */ 24 zephyr,code = <INPUT_KEY_0>; 28 press-thresholds-mv = <2300>, /* KEY1 */ 30 zephyr,code = <INPUT_KEY_1>; [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_create/src/ |
D | test_suite_invalid_inputs.c | 4 * SPDX-License-Identifier: Apache-2.0 19 * Test invalid input arguments to bt_id_create() using NULLs for address and IRK parameters. 22 * - Input address is NULL 23 * - Input IRK is NULL 26 * - '-EINVAL' error code is returned representing invalid values were used. 34 zassert_true(err == -EINVAL, "Unexpected error code '%d' was returned", err); in ZTEST() 38 * Test invalid input arguments to bt_id_create() using NULL for the address parameter 42 * - Input address is NULL 43 * - Input IRK isn't NULL 46 * - '-EINVAL' error code is returned representing invalid values were used. [all …]
|
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 52 * - Input address is NULL 53 * - Input IRK is NULL 54 * - 'BT_DEV_ENABLE' flag is set in bt_dev.flags 55 * - bt_addr_le_create_static() returns a zero error code (success) 58 * - A new identity is created and the address is loaded to bt_dev.id_addr[] 59 * - bt_dev.id_count is incremented 73 zassert_true(new_id >= 0, "Unexpected error code '%d' was returned", new_id); in ZTEST() 86 * - Input address is NULL 87 * - Input IRK is NULL [all …]
|
/Zephyr-latest/samples/subsys/display/lvgl/boards/ |
D | native_posix.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/lvgl/lvgl.h> 16 compatible = "gpio-qdec"; 18 steps-per-period = <4>; 20 sample-time-us = <2000>; 21 idle-timeout-ms = <200>; 25 compatible = "gpio-keys"; 29 zephyr,code = <INPUT_KEY_R>; 34 zephyr,code = <INPUT_KEY_B>; [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/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 23 This project requires an USB device driver and uses the :ref:`input` API. 24 There must be a :dtcompatible:`gpio-keys` group of buttons or keys defined at 25 the board level that can generate input events, otherwise the example will build 30 - ``INPUT_KEY_0``: left button 31 - ``INPUT_KEY_1``: right button [all …]
|
/Zephyr-latest/samples/subsys/input/input_dump/boards/ |
D | esp32_devkitc_wroom_procpu.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 16 zephyr,code = <INPUT_KEY_0>; 20 channel-num = <8>; 21 channel-sens = <20>; 22 zephyr,code = <INPUT_KEY_1>; 26 channel-num = <6>; [all …]
|
D | esp32_devkitc_wrover_procpu.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 16 zephyr,code = <INPUT_KEY_0>; 20 channel-num = <8>; 21 channel-sens = <20>; 22 zephyr,code = <INPUT_KEY_1>; 26 channel-num = <6>; [all …]
|
D | esp32s2_saola.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 16 zephyr,code = <INPUT_KEY_0>; 20 channel-num = <8>; 21 channel-sens = <20>; 22 zephyr,code = <INPUT_KEY_1>; 26 channel-num = <6>; [all …]
|
D | esp32s3_devkitm_procpu.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 16 zephyr,code = <INPUT_KEY_0>; 20 channel-num = <8>; 21 channel-sens = <20>; 22 zephyr,code = <INPUT_KEY_1>; 26 channel-num = <6>; [all …]
|
/Zephyr-latest/modules/lvgl/input/ |
D | lvgl_encoder_input.c | 4 * SPDX-License-Identifier: Apache-2.0 25 struct lvgl_common_input_data *data = dev->data; in lvgl_encoder_process_event() 26 const struct lvgl_encoder_input_config *cfg = dev->config; in lvgl_encoder_process_event() 28 if (evt->code == cfg->rotation_input_code) { in lvgl_encoder_process_event() 29 data->pending_event.enc_diff = evt->value; in lvgl_encoder_process_event() 30 } else if (evt->code == cfg->button_input_code) { in lvgl_encoder_process_event() 31 data->pending_event.state = in lvgl_encoder_process_event() 32 evt->value ? LV_INDEV_STATE_PRESSED : LV_INDEV_STATE_RELEASED; in lvgl_encoder_process_event() 33 data->pending_event.enc_diff = 0; in lvgl_encoder_process_event() 34 data->pending_event.key = LV_KEY_ENTER; in lvgl_encoder_process_event() [all …]
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_string_conv.h | 4 * SPDX-License-Identifier: Apache-2.0 23 * @param str Input string. 25 * @param err Error code pointer: 26 * -EINVAL on invalid string input. 27 * -ERANGE if numeric string input is to large to convert. 40 * @param str Input string. 42 * @param err Error code pointer: 43 * Set to -EINVAL on invalid string input. 44 * Set to -ERANGE if numeric string input is to large to convert. 57 * @param str Input string. [all …]
|
/Zephyr-latest/tests/subsys/input/shell/ |
D | testcase.yaml | 1 # SPDX-License-Identifier: Apache-2.0 4 input.input_shell: 5 tags: input 7 - native_sim 8 - native_sim/native/64 10 - native_sim 15 - "I: input event: dev=NULL SYN type= 1 code= 2 value=0" 16 - "I: input event: dev=NULL SYN type= 1 code= 2 value=1"
|
/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 52 .. code-block:: bash 63 .. code-block:: bash [all …]
|
/Zephyr-latest/samples/subsys/console/getline/ |
D | README.rst | 1 .. zephyr:code-sample:: console_getline 4 Use console_getline() to read an input line from the console. 10 Similar to the well-known ANSI C gets() and fgets() functions, 11 :c:func:`console_getline` either returns the next available input 14 console input line by line. The sample also allows to see details of how 17 If you are interested in character by character console input, see 18 :zephyr:code-sample:`console_getchar`. 32 .. zephyr-app-commands:: 33 :zephyr-app: samples/subsys/console/getline 34 :host-os: unix [all …]
|
/Zephyr-latest/samples/modules/cmsis_dsp/moving_average/ |
D | README.rst | 1 .. zephyr:code-sample:: cmsis-dsp-moving-average 2 :name: CMSIS-DSP moving average 4 Use the CMSIS-DSP library to calculate the moving average of a signal. 9 This sample demonstrates how to use the CMSIS-DSP library to calculate the moving average of a 12 It can be run on any board supported in Zephyr, but note that CMSIS-DSP is specifically optimized 13 for ARM Cortex-A and Cortex-M processors. 19 The sample uses a very simple input signal of 32 samples, and computes the moving average using a 21 CMSIS-DSP function, and displayed on the console. 24 In order to allow an easy comparison of the efficiency of the CMSIS-DSP library when used on ARM 31 CMSIS-DSP is an optional module and needs to be added explicitly to your Zephyr workspace: [all …]
|
/Zephyr-latest/samples/basic/button/ |
D | README.rst | 1 .. zephyr:code-sample:: button 3 :relevant-api: gpio_interface 10 A simple button demo showcasing the use of GPIO input with interrupts. 14 debouncing, check out :ref:`input` and :zephyr:code-sample:`input-dump` 23 The button must be configured using the ``sw0`` :ref:`devicetree <dt-guide>` 24 alias, usually in the :ref:`BOARD.dts file <devicetree-in-out-files>`. You will 27 .. code-block:: none 35 the same alias used by the :zephyr:code-sample:`blinky` sample. If this is provided, the LED 48 .. code-block:: devicetree 58 gpio-controller; [all …]
|