Home
last modified time | relevance | path

Searched +full:rotation +full:- +full:input +full:- +full:code (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/dts/bindings/input/
Dzephyr,lvgl-encoder-input.yaml2 # 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 …]
/Zephyr-latest/modules/lvgl/input/
Dlvgl_encoder_input.c4 * 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 …]
Dlvgl_pointer_input.c4 * SPDX-License-Identifier: Apache-2.0
33 const struct lvgl_pointer_input_config *cfg = dev->config; in lvgl_pointer_process_event()
34 struct lvgl_pointer_input_data *data = dev->data; in lvgl_pointer_process_event()
37 struct display_capabilities *cap = &disp_data->cap; in lvgl_pointer_process_event()
38 lv_point_t *point = &data->common_data.pending_event.point; in lvgl_pointer_process_event()
40 switch (evt->code) { in lvgl_pointer_process_event()
42 if (cfg->swap_xy) { in lvgl_pointer_process_event()
43 data->point_y = evt->value; in lvgl_pointer_process_event()
45 data->point_x = evt->value; in lvgl_pointer_process_event()
49 if (cfg->swap_xy) { in lvgl_pointer_process_event()
[all …]
/Zephyr-latest/samples/subsys/display/lvgl/boards/
Dnative_posix.overlay4 * 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/sensor/qdec/
DREADME.rst1 .. zephyr:code-sample:: qdec
3 :relevant-api: sensor_interface
5 Get rotation data from a quadrature decoder sensor.
30 .. code-block:: dts
43 pinctrl-0 = <&tim3_ch1_pa6 &tim3_ch2_pa7>;
44 pinctrl-names = "default";
45 st,input-polarity-inverted;
46 st,input-filter-level = <FDIV32_N8>;
47 st,counts-per-revolution = <16>;
57 .. code-block:: console
[all …]
/Zephyr-latest/boards/hardkernel/odroid_go/
Dodroid_go_procpu.dts4 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "odroid_go-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "ODROID-GO Game Kit PROCPU";
20 zephyr,shell-uart = &uart0;
22 zephyr,code-partition = &slot0_partition;
24 zephyr,bt-hci = &esp32_bt_hci;
28 compatible = "gpio-leds";
36 compatible = "gpio-keys";
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/input/
Dinput-event-codes.h4 * SPDX-License-Identifier: Apache-2.0
6 * Input event codes, for codes available in Linux, use the same values as in
7 * https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/input-event-codes.h
14 * @defgroup input_events Input Event Definitions
21 * @name Input event types.
29 #define INPUT_EV_DEVICE 0xef /**< Device specific input event */
35 * @name Input event KEY codes.
170 #define INPUT_KEY_UWB 239 /**< Ultra-Wideband Key */
184 * @name Input event BTN codes.
235 * @name Input event ABS codes.
[all …]
/Zephyr-latest/boards/st/st25dv_mb1283_disco/
Dst25dv_mb1283_disco.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "st/f4/stm32f405vgtx-pinctrl.dtsi"
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #include <zephyr/dt-bindings/display/ili9xxx.h>
19 zephyr,shell-uart = &usart6;
26 compatible = "gpio-leds";
36 compatible = "gpio-keys";
39 zephyr,code = <INPUT_KEY_0>;
43 zephyr,code = <INPUT_KEY_ENTER>;
[all …]
/Zephyr-latest/samples/userspace/shared_mem/src/
Denc.c6 * SPDX-License-Identifier: Apache-2.0
26 * DO NOT USE IN PRODUCTION CODE AS A SECURITY FEATURE
37 * this process is based on a absolute index of input characters
59 if (tmpIndex == -1) { in enig_enc()
63 tmpIndex = (W1[IMOD(IW1, tmpIndex)] + WHEEL_SIZE - IW1) % WHEEL_SIZE; in enig_enc()
67 tmpIndex = (W2[IMOD(IW2, tmpIndex)] + WHEEL_SIZE - IW2) % WHEEL_SIZE; in enig_enc()
71 tmpIndex = (W3[IMOD(IW3, tmpIndex)] + WHEEL_SIZE - IW3) % WHEEL_SIZE; in enig_enc()
79 tmpIndex = (W3R[IMOD(IW3, tmpIndex)] + WHEEL_SIZE - IW3) % WHEEL_SIZE; in enig_enc()
83 tmpIndex = (W2R[IMOD(IW2, tmpIndex)] + WHEEL_SIZE - IW2) % WHEEL_SIZE; in enig_enc()
87 tmpIndex = (W1R[IMOD(IW1, tmpIndex)] + WHEEL_SIZE - IW1) % WHEEL_SIZE; in enig_enc()
[all …]
/Zephyr-latest/boards/seeed/wio_terminal/
Dwio_terminal.dts3 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
8 #include "wio_terminal-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/display/ili9xxx.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 compatible = "seeed,wio-terminal";
21 zephyr,code-partition = &code_partition;
41 compatible = "gpio-leds";
50 compatible = "gpio-keys";
54 zephyr,code = <INPUT_KEY_0>;
[all …]
/Zephyr-latest/boards/ezurio/bl5340_dvk/
Dbl5340_dvk_nrf5340_cpuapp_common.dtsi2 * Copyright (c) 2019-2023 Nordic Semiconductor ASA
3 * Copyright (c) 2021-2023 Laird Connectivity
5 * SPDX-License-Identifier: Apache-2.0
7 #include "bl5340_dvk_nrf5340_cpuapp_common-pinctrl.dtsi"
8 #include <zephyr/dt-bindings/input/input-event-codes.h>
13 zephyr,shell-uart = &uart0;
14 zephyr,uart-mcumgr = &uart0;
15 zephyr,bt-mon-uart = &uart0;
16 zephyr,bt-c2h-uart = &uart0;
18 zephyr,bt-hci = &bt_hci_ipc0;
[all …]
/Zephyr-latest/boards/st/stm32f429i_disc1/
Dstm32f429i_disc1.dts5 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
10 #include <st/f4/stm32f429zitx-pinctrl.dtsi>
11 #include <zephyr/dt-bindings/display/ili9xxx.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
20 zephyr,shell-uart = &usart1;
29 compatible = "zephyr,memory-region", "mmio-sram";
32 zephyr,memory-region = "SDRAM2";
36 compatible = "gpio-leds";
48 compatible = "gpio-keys";
[all …]
/Zephyr-latest/boards/m5stack/m5stack_core2/
Dm5stack_core2_procpu.dts4 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "m5stack_core2-pinctrl.dtsi"
12 #include <zephyr/dt-bindings/display/ili9xxx.h>
13 #include <zephyr/dt-bindings/regulator/axp192.h>
21 pwr-led = &pwr_led;
22 uart-0 = &uart0;
23 i2c-0 = &i2c0;
33 zephyr,shell-uart = &uart0;
36 zephyr,code-partition = &slot0_partition;
[all …]
/Zephyr-latest/boards/arduino/nicla_sense_me/doc/
Dindex.rst9 nrf52832 ARM Cortex-M4F CPU. The board houses 4 low power industrial grade sensors
10 that can measure rotation, acceleration, pressure, humidity, temperature, air quality
22 - nRF52832 ARM Cortex-M4 processor at 64 MHz
23 - 512 kB flash memory, 64 kB SRAM
24 - Bluetooth Low Energy
25 - Micro USB (USB-B)
26 - JST 3-pin 1.2 mm pitch battery connector
27 - 10 Digital I/O pins
28 - 2 Analog input pins
29 - 12 PWM pins
[all …]
/Zephyr-latest/boards/espressif/esp32s3_eye/doc/
Dindex.rst6 The ESP32-S3-EYE is a small-sized AI development board produced by [Espressif](https://espressif.co…
7 It is based on the [ESP32-S3](https://www.espressif.com/en/products/socs/esp32-s3) SoC.
8 It features a 2-Megapixel camera, an LCD display, and a microphone, which are used for image
9 recognition and audio processing. ESP32-S3-EYE offers plenty of storage, with an 8 MB Octal PSRAM
15 The ESP32-S3-EYE board consists of two parts: the main board (ESP32-S3-EYE-MB) that integrates the
16 ESP32-S3-WROOM-1 module, camera, SD card slot, digital microphone, USB port, and function buttons;
17 and the sub board (ESP32-S3-EYE-SUB) that contains an LCD display.
21 -------------
23 The block diagram below presents main components of the ESP32-S3-EYE-MB main board (on the left)
24 and the ESP32-S3-EYE-SUB sub board (on the right), as well as the interconnections between
[all …]
/Zephyr-latest/doc/releases/
Dmigration-guide-3.6.rst35 instead use the new ``-DFILE_SUFFIX`` feature :ref:`application-file-suffixes`.
57 * NXP: Enabled :ref:`linkserver<linkserver-debug-host-tools>` to be the default runner on the
72 To enable them again use the ``west config manifest.project-filter -- +<module
73 name>`` command, or ``west config manifest.group-filter -- +optional`` to
81 command e.g. ``west flash --erase``. (:github:`64703`)
86 * If you have zcbor-generated code that relies on the zcbor libraries through Zephyr, you must
88 been overhauled, so the code using the generated code must likely be changed.
120 However, if you are still using code like
123 macro avoids run-time string comparisons, and is also safer because it will
126 .. list-table::
[all …]
Dmigration-guide-3.7.rst22 out-of-tree SoCs and boards to be ported to the new model. See the
25 * The following build-time generated headers:
27 .. list-table::
28 :header-rows: 1
30 * - Affected header files
31 * - ``app_version.h``
32 * - ``autoconf.h``
33 * - ``cmake_intdef.h``
34 * - ``core-isa-dM.h``
35 * - ``devicetree_generated.h``
[all …]
/Zephyr-latest/boards/st/nucleo_u5a5zj_q/doc/
Dindex.rst6 The Nucleo U5A5ZJ Q board, featuring an ARM Cortex-M33 based STM32U5A5ZJ MCU,
13 - STM32U5A5ZJ microcontroller in LQFP144 package
14 - Internal SMPS to generate V core logic supply
15 - Two types of extension resources:
17 - Arduino Uno V3 connectivity
18 - ST morpho extension pin headers for full access to all STM32 I/Os
20 - On-board ST-LINK/V3E debugger/programmer
21 - Flexible board power supply:
23 - USB VBUS or external source(3.3V, 5V, 7 - 12V)
24 - ST-Link V3E
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Dbluetooth.h7 * Copyright (c) 2015-2016 Intel Corporation
9 * SPDX-License-Identifier: Apache-2.0
46 * make the code more readable, especially when only one identity is
160 * to synchronize the advertising payload update with the RPA rotation.
162 * If rpa sharing is enabled and rpa expired cb of any adv-sets belonging
163 * to same adv id returns false, then adv-sets will continue with old rpa
169 * next rotation period.
205 * @param err zero on success or (negative) error code otherwise.
226 * @return Zero on success or (negative) error code otherwise.
242 * That is, the application shall not re-register them when
[all …]