Part 1
요약·해설
공식 원문 96줄과 property 3행을 전수 대조해 required relative rotation code·optional button code/device filtering·LVGL routing 제약을 보존했습니다.
zephyr,lvgl-encoder-input
Zephyr-specific binding
3 rows
Encoder/button events → LVGL encoder indev
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
AA53F633457CFAB640E14FE07E6F949111B0726AF33716077FC37178116C7B8E
:orphan:
.. raw:: html
<!--
FIXME: do not limit page width until content uses another representation
format other than tables
-->
<style>.wy-nav-content { max-width: none; !important }</style>
.. dtcompatible:: zephyr,lvgl-encoder-input
.. _dtbinding_zephyr_lvgl_encoder_input:
zephyr,lvgl-encoder-input
#########################
Vendor: :ref:`Zephyr-specific binding <dt_vendor_zephyr>`
Description
***********
.. code-block:: none
LVGL encoder indev pseudo-device
Listens for button/encoder input events and routes the
lv_indev_data_t to the underlying encoder lv_indev_t managed by LVGL.
Example configuration:
encoder {
compatible = "zephyr,lvgl-encoder-input";
rotation-input-code = <INPUT_REL_Y>;
button-input-code = <INPUT_KEY_0>;
};
Properties
**********
.. tabs::
.. group-tab:: Node specific properties
Properties not inherited from the base binding file.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``input``
- ``phandle``
- .. code-block:: none
Input device phandle.
* - ``rotation-input-code``
- ``int``
- .. code-block:: none
Input event code associated with rotation (INPUT_REL_*).
This property is **required**.
* - ``button-input-code``
- ``int``
- .. code-block:: none
Input event key code for encoder button (INPUT_KEY_* or INPUT_BTN_*).
.. group-tab:: Deprecated node specific properties
Deprecated properties not inherited from the base binding file.
(None)
.. group-tab:: Base properties
Properties inherited from the base binding file, which defines
common properties that may be set on many nodes. Not all of these
may apply to the "zephyr,lvgl-encoder-input" compatible.
(None)
Part 3
한국어 전문 번역
zephyr,lvgl-encoder-input
Vendor: Zephyr-specific binding
공식 설명
LVGL encoder indev pseudo-device
Listens for button/encoder input events and routes the
lv_indev_data_t to the underlying encoder lv_indev_t managed by LVGL.
Example configuration:
encoder {
compatible = "zephyr,lvgl-encoder-input";
rotation-input-code = <INPUT_REL_Y>;
button-input-code = <INPUT_KEY_0>;
};LVGL encoder indev pseudo-device
Button/encoder event를 LVGL이 관리하는 encoder lv_indev_t로 전달합니다. rotation-input-code가 필수이며 INPUT_REL_* code를 사용합니다.
button-input-code는 encoder push button에 대응하는 선택적인 key/button code이고, input은 event source를 특정 device로 제한합니다.
공식 예는 INPUT_REL_Y 회전과 INPUT_KEY_0 button을 사용하지만 rotation scale, acceleration과 direction inversion은 이 schema에 정의되지 않습니다.
속성 전체 번역
공식 node-specific 3개 property를 번역했으며 base property 표는 비어 있습니다.
노드 전용 속성 · 3개
| 이름 | 형식 | 설명과 제약 |
|---|---|---|
input | phandle | Event를 받을 특정 input device의 phandle입니다. |
rotation-input-code | int | Encoder rotation에 대응하는 INPUT_REL_* event code입니다. 필수 |
button-input-code | int | Encoder button에 대응하는 INPUT_KEY_* 또는 INPUT_BTN_* code입니다. |
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.