| /Zephyr-latest/include/zephyr/input/ |
| D | input_hid.h | 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). 35 * @retval the HID modifier corresponding to the input code. [all …]
|
| /Zephyr-latest/doc/develop/tools/ |
| D | vscode.rst | 3 Visual Studio Code 6 `Visual Studio Code`_ (VS Code for short) is a popular cross-platform IDE that supports C projects 9 This guide describes the process of setting up VS Code for Zephyr's 10 :zephyr:code-sample:`blinky` sample in VS Code. 15 Get VS Code 18 `Download VS Code`_ and install it. 26 This guide gives details on how to configure the :zephyr:code-sample:`blinky` 33 Open the project in VS Code 36 #. In VS Code, select :menuselection:`File --> Open Folder` from the main menu. 46 In order to support code navigation and linting capabilities, you must compile your project once to [all …]
|
| /Zephyr-latest/boards/adafruit/itsybitsy_m4_express/doc/ |
| D | index.rst | 28 To use the RTC, set :code:`CONFIG_CORTEX_M_SYSTICK=n` and set 29 :code:`CONFIG_SYS_CLOCK_TICKS_PER_SEC` to no more than 32 kHZ divided by 7, 60 The SAMD51 has three PWM generators with up to six channels each. :code:`TCC_0` 61 has a resolution of 24 bits and all other generators are 16 bit. :code:`TCC_1` 68 with a host PC. See the :zephyr:code-sample-category:`usb` sample applications for 69 more, such as the :zephyr:code-sample:`usb-cdc-acm` sample which sets up a virtual 78 Additionally, if :code:`CONFIG_USB_CDC_ACM` is enabled then the bootloader 79 will be entered automatically when you run :code:`west flash`. 84 #. Build the Zephyr kernel and the :zephyr:code-sample:`hello_world` sample application: 99 terminal should be :code:`/dev/ttyUSB0`. For example: [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 45 address and by periodic advertising interval. To apply a filter, use the :code:`bt scan-set-filter` 50 .. code-block:: console 56 .. code-block:: console 63 .. code-block:: console [all …]
|
| D | iso.rst | 7 .. code-block:: console 19 create-big :Create a BIG as a broadcaster [enc <broadcast code>] 22 [enc <broadcast code>] 30 .. code-block:: console 37 .. code-block:: console 43 .. code-block:: console 51 .. code-block:: console 60 .. code-block:: console
|
| /Zephyr-latest/scripts/ruff/ |
| D | gen_lint_exclude.py | 16 def __init__(self, code: str, url: str) -> None: 17 self.code = code 23 return self.code.__eq__(other.code) 26 return self.code.__hash__() 35 rules.setdefault(v["filename"], set()).add(RuffRule(v["code"], v["url"])) 40 for r in sorted(rs, key=lambda x: x.code): 41 sys.stdout.write(f' "{r.code}",\t# {r.url}\n'.expandtabs())
|
| /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/samples/boards/intel/adsp/code_relocation/ |
| D | README.rst | 1 .. zephyr:code-sample:: intel_adsp_code_relocation 2 :name: Code relocation 4 Relocate code using custom linker script. 9 A simple sample that shows code relocation working for Intel ADSP CAVS 31 .. code-block:: console 34 Calling relocated code 35 Relocated code! reloc location 0xbe008010
|
| /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 39 .. code-block:: console 46 .. code-block:: console 53 .. code-block:: console 61 .. code-block:: console 68 .. code-block:: console 75 .. code-block:: console 82 .. code-block:: console [all …]
|
| D | net_mgmt.rst | 14 layer code itself, to call defined network routines at any level in 16 example, by using these APIs, application code can request a scan be done on a 21 by eliminating code at build time for management routines that are not 53 pair of layer and code, whereas on the command part it will be a mask of 67 code. This makes it possible for different events to be handled by the 73 layer and layer code. A callback handler function **must** check 74 the event code (passed as an argument) against the specific network 83 layer code.) 87 .. code-block:: c 134 .. code-block:: c [all …]
|
| /Zephyr-latest/subsys/usb/host/ |
| D | usbip.h | 10 /* Retrieve the list of exported devices command code */ 12 /* Reply the list of exported devices command code */ 14 /* Request to import a remote device command code */ 16 /* Reply to import a remote device command code */ 19 /* Submit an URB command code */ 21 /* Reply for submitting an URB command code */ 23 /* Unlink an URB command code */ 25 /* Reply for unlink an URB command code */ 34 uint16_t code; member 40 uint16_t code; member
|
| /Zephyr-latest/doc/contribute/ |
| D | external.rst | 6 In some cases it is desirable to leverage existing, external source code in 10 This section describes the circumstances under which external source code can be 20 code analysis, testing or simulation please refer to the 28 External source code licensed under the Apache-2.0 license is not subject to 31 Integrating code into the Zephyr Project from other projects that use a license 48 for contributed code, we ensure that the Zephyr community can develop products 54 Just like with any other regular contribution, one that contains external code 55 needs to be evaluated for merit. However, in the particular case of code that 59 Committee and evaluated carefully before the external source code is accepted 66 important for source code that deals with security or cryptography. [all …]
|
| /Zephyr-latest/boards/adafruit/feather_m4_express/doc/ |
| D | index.rst | 29 To use the RTC, set :code:`CONFIG_CORTEX_M_SYSTICK=n` and set 30 :code:`CONFIG_SYS_CLOCK_TICKS_PER_SEC` to no more than 32 kHZ divided by 7, 61 The SAMD51 has three PWM generators with up to six channels each. :code:`TCC_0` 62 has a resolution of 24 bits and all other generators are 16 bit. :code:`TCC_1` 70 more, such as the :zephyr:code-sample:`usb-cdc-acm` sample which sets up a virtual 80 bootloader will be entered automatically when you run :code:`west flash`. 85 #. Build the Zephyr kernel and the :zephyr:code-sample:`hello_world` sample application: 100 terminal should be :code:`/dev/ttyUSB0`. For example: 102 .. code-block:: console 132 #. Connect the board to the probe by connecting the :code:`SWCLK`, [all …]
|
| /Zephyr-latest/cmake/modules/ |
| D | FindDeprecated.cmake | 5 # FindDeprecated module provides a single location for deprecated CMake build code. 6 # Whenever CMake code is deprecated it should be moved to this module and 7 # corresponding COMPONENTS should be created with name identifying the deprecated code. 9 # This makes it easier to maintain deprecated code and cleanup such code when it 13 # CMakeList.txt contains deprecated code, like: 18 # such code can easily be around for a long time, so therefore such code should 22 # # This code has been deprecated after Zephyr x.y 28 # and then in the original CMakeLists.txt, this code is inserted instead: 42 # This code was deprecated after Zephyr v3.1.0 58 # This code was deprecated after Zephyr v3.2.0 [all …]
|
| /Zephyr-latest/dts/bindings/input/ |
| D | zephyr,lvgl-encoder-input.yaml | 14 rotation-input-code = <INPUT_REL_Y>; 15 button-input-code = <INPUT_KEY_0>; 23 rotation-input-code: 27 Input event code associated with rotation (INPUT_REL_*). 29 button-input-code: 32 Input event key code for encoder button (INPUT_KEY_* or INPUT_BTN_*).
|
| D | futaba,sbus.yaml | 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>; 53 SBUS Channel to input-event-code binding 67 zephyr,code: 70 description: Code to emit.
|
| /Zephyr-latest/doc/contribute/style/ |
| D | code.rst | 3 C Code and General Style Guidelines 6 Coding style is enforced on any new or modified code, but contributors are 7 not expected to correct the style on existing code that they are not 12 the style of existing code in the tree, with higher importance given to 13 "nearby" code (first look at the function, then the same file, then 19 * Use `snake case`_ for code and variables. 23 ``switch`` body, even for single-line code blocks. 29 * Avoid using non-ASCII symbols in code, unless it significantly improves 31 * Use proper capitalization of nouns in code comments (e.g. ``UART`` and not
|
| /Zephyr-latest/boards/seeed/wio_terminal/doc/ |
| D | index.rst | 65 host PC. See the :zephyr:code-sample-category:`usb` sample applications for more, such as the 66 :zephyr:code-sample:`usb-cdc-acm` sample which sets up a virtual serial port that echos 83 #. Build the Zephyr kernel and the :code:`button` sample application: 110 #. Solder cables to the :code:`SWCLK`, :code:`SWDIO`, :code:`RESET`, 111 :code:`GND`, and :code:`3V3` pins. See `Test with SWD`_ for more 114 #. Connect the board to the probe by connecting the :code:`SWCLK`, 115 :code:`SWDIO`, :code:`RESET`, :code:`GND`, and :code:`3V3` pins on the 116 Wio Terminal to the :code:`SWCLK`, :code:`SWDIO`, :code:`RESET`, 117 :code:`GND`, and :code:`VTref` pins on the `J-Link`_.
|
| /Zephyr-latest/samples/net/sockets/echo_async_select/ |
| D | README.rst | 1 .. zephyr:code-sample:: async-sockets-echo-select 13 the :zephyr:code-sample:`async-sockets-echo` sample. 15 The source code for this sample application can be found at: 38 .. code-block:: console 44 it. Unlike the :zephyr:code-sample:`sockets-echo` sample, this application 48 by changing ``NUM_FDS`` defined in the source code. 53 The same application source code can be built for a POSIX system, e.g. 54 Linux. (Note: if you look at the source, you will see that the code is 60 .. code-block:: console 66 .. code-block:: console [all …]
|
| /Zephyr-latest/tests/drivers/eeprom/api/src/ |
| D | main.c | 33 zassert_equal(-EINVAL, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 51 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 54 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 57 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 65 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 68 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 71 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 90 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 93 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() 96 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER() [all …]
|
| /Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
| D | cap.rst | 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 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_SIRK_NOTIFIABLE` is enabled, this will also notify connected 46 .. code-block:: console 56 .. code-block:: console 75 When the Bluetooth stack has been initialized (:code:`bt init`), the Initiator can discover CAS and 76 the optionally included CSIS instance by calling (:code:`cap_initiator discover`). 79 .. code-block:: console [all …]
|
| /Zephyr-latest/samples/net/zperf/ |
| D | Kconfig | 7 bool "Relocate networking code into RAM" 10 Relocate networking code into RAM when running the zperf 11 sample. Can improve performance on platforms with fast code 17 string "Networking code RAM location" 20 Region to relocate networking code to
|
| /Zephyr-latest/doc/develop/getting_started/ |
| D | index.rst | 11 - Get the source code 28 .. code-block:: bash 84 .. code-block:: bash 91 .. code-block:: bash 105 .. code-block:: bash 121 .. code-block:: bash 130 .. code-block:: bash 139 .. code-block:: bash 146 .. code-block:: bash 186 .. code-block:: bat [all …]
|
| /Zephyr-latest/dts/bindings/sensor/ |
| D | we,wsen-pdus-25131308XXXXX.yaml | 24 0 - order code 2513130810001, range = -0.1 to +0.1 kPa 25 1 - order code 2513130810101 (5V VCC) + 2513130810102 (3.3V VCC), range = -1 to +1 kPa 26 2 - order code 2513130810201, range = -10 to +10 kPa 27 3 - order code 2513130810301, range = 0 to 100 kPa 28 4 - order code 2513130810401 (5V VCC) + 2513130810402 (3.3V VCC), range = -100 to +1000 kPa 29 5 - order code 2513130815401, range = 0 to +1500 kPa
|
| /Zephyr-latest/samples/subsys/usb/hid-mouse/ |
| D | README.rst | 1 .. zephyr:code-sample:: usb-hid-mouse 38 .. code-block:: none 58 .. code-block:: console 76 .. code-block:: console 85 Event code 272 (BTN_LEFT) 86 Event code 273 (BTN_RIGHT) 87 Event code 274 (BTN_MIDDLE) 89 Event code 0 (REL_X) 90 Event code 1 (REL_Y) 91 Event code 8 (REL_WHEEL) [all …]
|