/Zephyr-latest/dts/bindings/input/ |
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 | 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 | 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 20 a click event will be performed at (120,220). 22 compatible: "zephyr,lvgl-button-input" 24 include: zephyr,lvgl-common-input.yaml [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 | 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 …]
|
D | gpio-qdec.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 GPIO based QDEC input device 7 Implement an input device generating relative axis event reports for a rotary 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 18 compatible = "gpio-qdec"; 21 steps-per-period = <4>; 23 sample-time-us = <2000>; 24 idle-timeout-ms = <200>; 27 compatible: "gpio-qdec" 33 type: phandle-array [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 …]
|
/Zephyr-latest/include/zephyr/input/ |
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 37 /** Device generating the event or NULL. */ 41 /** Event type (see @ref INPUT_EV_CODES). */ 44 * Event code (see @ref INPUT_KEY_CODES, @ref INPUT_BTN_CODES, 47 uint16_t code; member [all …]
|
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 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/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/doc/kernel/services/synchronization/ |
D | events.rst | 6 An :dfn:`event object` is a kernel object that implements traditional events. 15 Any number of event objects can be defined (limited only by available RAM). Each 16 event object is referenced by its memory address. One or more threads may wait 17 on an event object until the desired set of events has been delivered to the 18 event object. When new events are delivered to the event object, all threads 21 An event object has the following key properties: 23 * A 32-bit value that tracks which events have been delivered to it. 25 An event object must be initialized before it can be used. 32 conditions of multiple threads waiting on the event object. All threads whose 37 have the option of resetting the current set of events tracked by the event [all …]
|
/Zephyr-latest/doc/services/input/ |
D | index.rst | 3 Input chapter 6 The input subsystem provides an API for dispatching input events from input 9 Input Events 12 The subsystem is built around the :c:struct:`input_event` structure. An input 13 event represents a change in an individual event entity, for example the state 16 The :c:struct:`input_event` structure describes the specific event, and 19 multi-axis device have been reported. 21 Input Devices 24 An input device can report input events directly using :c:func:`input_report` 25 or any related function; for example buttons or other on-off input entities [all …]
|
/Zephyr-latest/samples/subsys/input/input_dump/ |
D | README.rst | 1 .. zephyr:code-sample:: input-dump 2 :name: Input dump 3 :relevant-api: input_events 5 Print all input events. 10 The Input Dump sample prints any input event using the :ref:`input` APIs. 15 The samples works on any board with an input driver defined in the board devicetree. 22 .. zephyr-app-commands:: 23 :zephyr-app: samples/subsys/input/input_dump 28 After starting, the sample will print any input event in the console.
|
/Zephyr-latest/subsys/input/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 4 menuconfig INPUT config 5 bool "Input" 7 Include input subsystem and drivers in the system config. 9 if INPUT 11 module = INPUT 12 module-str = input 16 int "Input subsystem and drivers init priority" 19 Input subsystem and drivers initialization priority. 22 prompt "Input event processing mode" [all …]
|
D | input_utils.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/input/input.h> 10 #include <zephyr/input/input_kbd_matrix.h> 16 LOG_MODULE_DECLARE(input); 39 shell_info(sh, "Input event dumping enabled"); in input_cmd_dump() 62 LOG_INF("input event: dev=%-16s %3s type=%2x code=%3d value=%d", in input_dump_cb() 63 evt->dev ? evt->dev->name : "NULL", in input_dump_cb() 64 evt->sync ? "SYN" : "", in input_dump_cb() 65 evt->type, in input_dump_cb() 66 evt->code, in input_dump_cb() [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/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/samples/drivers/misc/timeaware_gpio/ |
D | README.rst | 1 .. zephyr:code-sample:: timeaware-gpio 2 :name: Time-aware GPIO 3 :relevant-api: tgpio_interface 14 2. Input pulse timestamping (a pulse generator or loopback may be required) 21 .. zephyr-app-commands:: 22 :zephyr-app: samples/drivers/misc/timeaware_gpio 24 :host-os: unix 34 .. code-block:: console 36 *** Booting Zephyr OS build zephyr-v3.4.0-4166-g52b34a310c67 *** 41 [TGPIO] timestamp: 0000000000000000, event count: 0000000000000000 [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/boards/infineon/cyw920829m2evk_02/ |
D | cyw920829m2evk_02-common.dtsi | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/input/input-event-codes.h> 17 compatible = "gpio-leds"; 30 compatible = "gpio-keys"; 35 zephyr,code = <INPUT_KEY_0>; 41 zephyr,code = <INPUT_KEY_1>;
|