Home
last modified time | relevance | path

Searched full:code (Results 1 – 25 of 3894) sorted by relevance

12345678910>>...156

/Zephyr-latest/include/zephyr/input/
Dinput_hid.h16 * @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/
Dvscode.rst3 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/doc/connectivity/bluetooth/shell/host/
Dgap.rst15 :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 …]
Diso.rst7 .. 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/
Dgen_lint_exclude.py16 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/
Da2dp.rst4 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/doc/connectivity/networking/api/
Dzperf.rst20 .. 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 …]
Dnet_mgmt.rst14 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/samples/boards/intel/adsp/code_relocation/
DREADME.rst1 .. 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/contribute/
Dexternal.rst6 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/dts/bindings/input/
Dzephyr,lvgl-encoder-input.yaml14 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_*).
Dfutaba,sbus.yaml22 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/cmake/modules/
DFindDeprecated.cmake5 # 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.3.0
[all …]
/Zephyr-latest/samples/net/sockets/echo_async_select/
DREADME.rst1 .. 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/doc/_extensions/zephyr/domain/
D__init__.py9 specific to the Zephyr RTOS project (ex. code samples).
14 - ``zephyr:code-sample::`` - Defines a code sample.
15 - ``zephyr:code-sample-category::`` - Defines a category for grouping code samples.
16 - ``zephyr:code-sample-listing::`` - Shows a listing of code samples found in a given category.
23 - ``:zephyr:code-sample:`` - References a code sample.
24 - ``:zephyr:code-sample-category:`` - References a code sample category.
101 Transforms a `CodeSampleNode` into a `nodes.section` named after the code sample name.
125 Browse source code on GitHub
174 # the code sample.
289 docname = self.env.domaindata["zephyr"]["code-samples-categories"][tree.category["id"]][
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dcap.rst16 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_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 …]
Dbap.rst15 .. code-block:: console
28 [bcode <broadcast code> || bcode_str <broadcast code
97 .. code-block:: console
111 .. code-block:: console
126 .. code-block:: console
136 .. code-block:: console
144 .. code-block:: console
154 .. code-block:: console
162 .. code-block:: console
172 The command :code:`bap create_broadcast_sink` will either use existing periodic advertising
[all …]
/Zephyr-latest/tests/drivers/eeprom/api/src/
Dmain.c33 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/samples/subsys/usb/hid-mouse/
DREADME.rst1 .. 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 …]
/Zephyr-latest/doc/services/device_mgmt/
Dmcumgr_callbacks.rst10 (and module) code to receive callbacks for MCUmgr events that they are
11 interested in and react to them or return a status code to the calling function
26 registration and notification system into the code. This will not provide any
36 application code as per:
38 .. code-block:: c
54 /* Return OK status code to continue with acceptance to underlying handler */
65 This code registers a handler for the :c:enumerator:`MGMT_EVT_OP_CMD_DONE`
85 .. code-block:: c
93 The following code is not allowed, and will cause undefined operation, because
97 .. code-block:: c
[all …]
/Zephyr-latest/doc/develop/getting_started/
Dindex.rst11 - Get the source code
28 .. code-block:: bash
84 .. code-block:: bash
91 .. code-block:: bash
100 .. code-block:: bash
116 .. code-block:: bash
125 .. code-block:: bash
134 .. code-block:: bash
141 .. code-block:: bash
180 .. code-block:: bat
[all …]
/Zephyr-latest/samples/net/zperf/
DKconfig7 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/samples/subsys/display/lvgl/boards/
Dnative_posix.overlay29 zephyr,code = <INPUT_KEY_R>;
34 zephyr,code = <INPUT_KEY_B>;
39 zephyr,code = <INPUT_KEY_0>;
44 zephyr,code = <INPUT_KEY_LEFT>;
49 zephyr,code = <INPUT_KEY_RIGHT>;
54 zephyr,code = <INPUT_KEY_ENTER>;
67 rotation-input-code = <INPUT_REL_WHEEL>;
68 button-input-code = <INPUT_KEY_0>;
85 /* Skip pin 0 with the unknown code 0 */
/Zephyr-latest/samples/net/sockets/echo_async/
DREADME.rst1 .. zephyr:code-sample:: async-sockets-echo
13 the :zephyr:code-sample:`sockets-echo` sample. It's a more involved application,
17 The source code for this sample application can be found at:
40 .. code-block:: console
46 it. Unlike the above-mentioned :zephyr:code-sample:`sockets-echo` sample, this application
50 by changing ``NUM_FDS`` defined in the source code.
61 The same application source code can be built for a POSIX system, e.g.
62 Linux. (Note: if you look at the source, you will see that the code is
68 .. code-block:: console
74 .. code-block:: console
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_adv_own_addr/src/
Dtest_suite_invalid_inputs.c81 zassert_true(err == -ENOTSUP, "Unexpected error code '%d' was returned", err); in ZTEST()
87 * Operation fails if bt_id_set_adv_private_addr() failed and a negative error code is returned.
93 * - bt_id_set_adv_private_addr() fails and returns a negative error code (failure)
96 * - bt_id_set_adv_own_addr() returns a negative error code (failure)
111 zassert_true(err < 0, "Unexpected error code '%d' was returned", err); in ZTEST()
119 * Operation fails if bt_id_set_adv_random_addr() failed and a negative error code is returned.
124 * - bt_id_set_adv_random_addr() fails and returns a negative error code (failure)
127 * - bt_id_set_adv_own_addr() returns a negative error code (failure)
147 zassert_true(err < 0, "Unexpected error code '%d' was returned", err); in ZTEST()
158 * Operation fails if bt_id_set_adv_random_addr() failed and a negative error code is returned.
[all …]

12345678910>>...156